We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf663e commit 17d6858Copy full SHA for 17d6858
asv_bench/benchmarks/algorithms.py
@@ -2,6 +2,11 @@
2
import pandas as pd
3
from pandas.util import testing as tm
4
5
+try:
6
+ from pandas.tools.hashing import hash_pandas_object
7
+except ImportError:
8
+ pass
9
+
10
11
class Algorithms(object):
12
goal_time = 0.2
@@ -103,13 +108,13 @@ def setup(self):
103
108
self.df.iloc[10:20] = np.nan
104
109
105
110
def time_frame(self):
106
- self.df.hash()
111
+ hash_pandas_object(self.df)
107
112
113
def time_series_int(self):
- self.df.E.hash()
114
+ hash_pandas_object(self.df.E)
115
116
def time_series_string(self):
- self.df.B.hash()
117
+ hash_pandas_object(self.df.B)
118
119
def time_series_categorical(self):
- self.df.C.hash()
120
+ hash_pandas_object(self.df.C)
0 commit comments