Skip to content

Commit b60bc69

Browse files
add code sample for pandas-dev#35977
1 parent 1e71a1d commit b60bc69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bisect/35977.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pandas as pd
2+
3+
print(pd.__version__)
4+
df = pd.DataFrame({"a": ["a", "b", "c"], "b": ["d", "", ""]}, dtype="string")
5+
6+
df.replace(r"^\s*$", pd.NA, regex=True, inplace=True)
7+
print(df)

0 commit comments

Comments
 (0)