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 0aa9dce commit dd8320eCopy full SHA for dd8320e
asv_bench/benchmarks/binary_ops.py
@@ -52,6 +52,8 @@ def setup(self):
52
np.iinfo(np.int16).max,
53
size=(N, N)))
54
55
+ self.s = Series(np.random.randn(N))
56
+
57
# Division
58
59
def time_frame_float_div(self):
@@ -74,6 +76,18 @@ def time_frame_int_mod(self):
74
76
def time_frame_float_mod(self):
75
77
self.df % self.df2
78
79
+ # Dot product
80
81
+ def time_frame_dot(self):
82
+ self.df.dot(self.df2)
83
84
+ def time_series_dot(self):
85
+ self.s.dot(self.s)
86
87
+ def time_frame_series_dot(self):
88
+ self.df.dot(self.s)
89
90
91
92
class Timeseries(object):
93
0 commit comments