Skip to content

Commit 1e0e515

Browse files
authored
Update reshape-data-pivot.py3
1 parent 432a04f commit 1e0e515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python3/reshape-data-pivot.py3

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ import pandas as pd
66

77
# pandas
88
def pivotTable(weather: pd.DataFrame) -> pd.DataFrame:
9-
return df.pivot(index="month", columns="city", values="temperature")
9+
return weather.pivot(index="month", columns="city", values="temperature")

0 commit comments

Comments
 (0)