Skip to content

Commit 5ecf905

Browse files
add code sample for pandas-dev#38519
1 parent 50d08e9 commit 5ecf905

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bisect/38519.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pandas as pd
2+
import pandas.testing as tm
3+
4+
print(pd.__version__)
5+
6+
s = pd.Series([1, 2, 3])
7+
original = s.copy()
8+
s1 = s.iloc[1:]
9+
s1 -= 4
10+
print(s)
11+
tm.assert_series_equal(s, original)

0 commit comments

Comments
 (0)