@@ -386,7 +386,7 @@ def test_equal(name):
386386def test_unequal(name):
387387 df, df2 = pairs[name]
388388 return df.equals(df2)
389-
389+
390390float_df = DataFrame(np.random.randn(1000, 1000))
391391object_df = DataFrame([['foo']*1000]*1000)
392392nonunique_cols = object_df.copy()
@@ -434,11 +434,21 @@ def test_unequal(name):
434434# frame shift speedup issue-5609
435435
436436setup = common_setup + """
437- df = pd.DataFrame(np.random.rand(10000,500))
437+ df = DataFrame(np.random.rand(10000,500))
438+ # note: df._data.blocks are f_contigous
438439"""
439440frame_shift_axis0 = Benchmark ('df.shift(1,axis=0)' , setup ,
440- name = 'frame_shift_axis_0' ,
441441 start_date = datetime (2014 ,1 ,1 ))
442442frame_shift_axis1 = Benchmark ('df.shift(1,axis=1)' , setup ,
443- name = 'frame_shift_axis_1' ,
444- start_date = datetime (2014 ,1 ,1 ))
443+ start_date = datetime (2014 ,1 ,1 ))
444+
445+ #
446+ setup = common_setup + """
447+ df = DataFrame(np.random.rand(10000,500))
448+ df = df.consolidate()
449+ # note: df._data.blocks are c_contigous
450+ """
451+ frame_shift_c_order_axis0 = Benchmark ('df.shift(1,axis=0)' , setup ,
452+ start_date = datetime (2014 ,1 ,1 ))
453+ frame_shift_c_order_axis1 = Benchmark ('df.shift(1,axis=1)' , setup ,
454+ start_date = datetime (2014 ,1 ,1 ))
0 commit comments