Skip to content

Commit e09dd99

Browse files
committed
TST: vbenchmark for Series.fillna
1 parent 96f25f9 commit e09dd99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vb_suite/reindex.py

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
5858
ts = Series(np.random.randn(len(rng)), index=rng)
5959
ts2 = ts[::2]
60+
ts3 = ts2.reindex(ts.index)
6061
6162
def pad():
6263
try:
@@ -78,3 +79,8 @@ def backfill():
7879
reindex_daterange_backfill = Benchmark(statement, setup,
7980
name="reindex_daterange_backfill")
8081

82+
reindex_fillna_pad = Benchmark("ts3.fillna(method='pad')", setup,
83+
name="reindex_fillna_pad")
84+
85+
reindex_fillna_backfill = Benchmark("ts3.fillna(method='backfill')", setup,
86+
name="reindex_fillna_backfill")

0 commit comments

Comments
 (0)