# 11.1 Wide आणि long म्हणजे काय?

Source: https://ravindrabagale.com/mr/datascience/ch11-reshape-and-wide-long-data/11-1-wide-vs-long.html
Language: mr (Marathi with English technical terms)

Wide: प्रत्येक city साठी एक row आणि महिन्यांचे अनेक columns. Long: प्रत्येक city-month जोडीसाठी एक row. GroupBy आणि seaborn साठी long layout सोयीचा असतो.

import pandas as pd

wide = pd.DataFrame({
    "city": ["Pune", "Nashik", "Nagpur"],
    "Aug": [120000, 80000, 70000],
    "Sep": [150000, 95000, 72000],   # Ganeshotsav lift in Pune
    "Oct": [220000, 140000, 90000],  # Diwali lift
})
wide

या काल्पनिक data मध्ये September ला Pune आणि October ला GMV वाढवून pattern दाखवला आहे. हे प्रत्यक्ष festival परिणामाचे पुरावे नाहीत.

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

Layout बदलला तरी एकूण amount बदलायला नको. Reshape नंतर total तपासा.
