Skip to content

Commit 63957e4

Browse files
authored
Requested ASV (#33197)
* Requested ASV * fix asv
1 parent e79dc5f commit 63957e4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

asv_bench/benchmarks/arithmetic.py

+17
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,23 @@ def time_frame_op_with_scalar(self, dtype, scalar, op):
5050
op(self.df, scalar)
5151

5252

53+
class OpWithFillValue:
54+
def setup(self):
55+
# GH#31300
56+
arr = np.arange(10 ** 6)
57+
df = DataFrame({"A": arr})
58+
ser = df["A"]
59+
60+
self.df = df
61+
self.ser = ser
62+
63+
def time_frame_op_with_fill_value_no_nas(self):
64+
self.df.add(self.df, fill_value=4)
65+
66+
def time_series_op_with_fill_value_no_nas(self):
67+
self.ser.add(self.ser, fill_value=4)
68+
69+
5370
class MixedFrameWithSeriesAxis0:
5471
params = [
5572
[

0 commit comments

Comments
 (0)