Skip to content

Commit e14556a

Browse files
code sample for pandas-dev#41997
1 parent dfabdfc commit e14556a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bisect/41997.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 1.3: (intended?) Behavior change with empty apply #41997
2+
3+
import pandas as pd
4+
5+
print(pd.__version__)
6+
7+
df = pd.DataFrame(columns=["a", "b"])
8+
9+
df["a"] = df.apply(lambda x: x["a"], axis=1)
10+
11+
print(df)

0 commit comments

Comments
 (0)