Skip to content

Commit 500d8ed

Browse files
add code sample for pandas-dev#36785
1 parent 4fc9217 commit 500d8ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

bisect/36785.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pandas as pd
2+
3+
pd.__version__
4+
5+
df = pd.DataFrame({"A": [pd.to_datetime("20130101", utc=True)]})
6+
print(df)
7+
8+
9+
def func(x):
10+
print(x)
11+
return x
12+
13+
14+
res = df.apply(func, axis=1)
15+
print(res)

0 commit comments

Comments
 (0)