2889. Reshape Data: Pivot | Pandas | Bug
Question Problem\nThe description is not specify to add aggfunc, so the answer without aggfunc is same with aggfunc. But leetcode wont accept the first one (wit
# Question Problem\nThe description is not specify to add aggfunc, so the answer without aggfunc is same with aggfunc. But leetcode wont accept the first one (without aggfunc).\n\n# Code\n```\nimport pandas as pd\n\ndef pivotTable(weather: pd.DataFrame) -> pd.DataFrame:\n    return weather.pivot_table(values=\'temperature\', index=\'month\', columns = \'city\',aggfunc=\'max\')\n    \n```
['Pandas']