We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3fc609 commit 940104eCopy full SHA for 940104e
asv_bench/benchmarks/frame_methods.py
@@ -13,8 +13,7 @@ def setup(self):
13
self.df = DataFrame(np.random.randn(10000, 25))
14
self.df['foo'] = 'bar'
15
self.df['bar'] = 'baz'
16
- with warnings.catch_warnings(record=True):
17
- self.df = self.df.consolidate()
+ self.df = self.df._consolidate()
18
19
def time_frame_get_numeric_data(self):
20
self.df._get_numeric_data()
asv_bench/benchmarks/join_merge.py
@@ -23,11 +23,7 @@ def setup(self):
23
self.mdf1['obj1'] = 'bar'
24
self.mdf1['obj2'] = 'bar'
25
self.mdf1['int1'] = 5
26
- try:
27
28
- self.mdf1.consolidate(inplace=True)
29
- except (AttributeError, TypeError):
30
- pass
+ self.mdf1 = self.mdf1._consolidate()
31
self.mdf2 = self.mdf1.copy()
32
self.mdf2.index = self.df2.index
33
0 commit comments