File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,24 @@ def setup(self):
262
262
Z = self .right_object ["Z" ].astype ("category" )
263
263
)
264
264
265
+ self .left_cat_col = self .left_object .astype ({"X" : "category" })
266
+ self .right_cat_col = self .right_object .astype ({"X" : "category" })
267
+
268
+ self .left_cat_idx = self .left_cat_col .set_index ("X" )
269
+ self .right_cat_idx = self .right_cat_col .set_index ("X" )
270
+
265
271
def time_merge_object (self ):
266
272
merge (self .left_object , self .right_object , on = "X" )
267
273
268
274
def time_merge_cat (self ):
269
275
merge (self .left_cat , self .right_cat , on = "X" )
270
276
277
+ def time_merge_on_cat_col (self ):
278
+ merge (self .left_cat_col , self .right_cat_col , on = "X" )
279
+
280
+ def time_merge_on_cat_idx (self ):
281
+ merge (self .left_cat_idx , self .right_cat_idx , on = "X" )
282
+
271
283
272
284
class MergeOrdered :
273
285
def setup (self ):
You can’t perform that action at this time.
0 commit comments