We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432a04f commit 1e0e515Copy full SHA for 1e0e515
Python3/reshape-data-pivot.py3
@@ -6,4 +6,4 @@ import pandas as pd
6
7
# pandas
8
def pivotTable(weather: pd.DataFrame) -> pd.DataFrame:
9
- return df.pivot(index="month", columns="city", values="temperature")
+ return weather.pivot(index="month", columns="city", values="temperature")
0 commit comments