All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g2801_2900.s2889_reshape_data_pivot.solution.py Maven / Gradle / Ivy

The newest version!
# #Easy #2023_12_25_Time_416_ms_(99.87%)_Space_61.8_MB_(21.28%)

import pandas as pd

def pivotTable(weather: pd.DataFrame) -> pd.DataFrame:
    return weather.pivot(index='month', columns='city', values='temperature')




© 2015 - 2024 Weber Informatics LLC | Privacy Policy