# 17.4 Reshape आणि EDA चा सराव

Source: https://ravindrabagale.com/mr/datascience/ch17-practice-exercises-with-answer-hints/17-4-reshape-and-eda.html
Language: mr (Marathi with English technical terms)

Exercise G

City × month GMV ची wide table melt करून long करा. सर्वात जास्त GMV असलेली city-month जोडी शोधा.
Hint G पाहा
melt(id_vars="city", var_name="month", value_name="gmv") आणि मग long.loc[long["gmv"].idxmax()].

Exercise H

City विरुद्ध status crosstab करा आणि margins दाखवा. एका वाक्यात finding लिहा.
Hint H पाहा
pd.crosstab(df["city"], df["status"], margins=True).

रवींद्र बागले यांची tip

idxmax पहिला maximum दाखवतो. समान maximum असलेल्या सर्व जोड्या हव्या असतील तर maximum च्या equality वर filter करा.
