Problem:
Understanding sales fluctuations is essential for forecasting and inventory planning. This project aimed to identify monthly sales trends in Walmart’s retail data to support marketing, logistics, and resource decisions.
Approach:
I used Python and pandas to clean and analyze Walmart's weekly sales dataset. Key steps included:
Data Cleaning: Converted dates, handled missing markdown values, and ensured datetime consistency.
Data Aggregation: Resampled weekly sales data to generate monthly totals using resample('M').
Visualization: Created a line plot using matplotlib to visualize monthly sales trends and detect seasonal patterns.
Tools:
Python: Core programming
pandas: Data manipulation
ploptly: Visualization
Kaggle: Dataset source
Outcome:
The visualization revealed strong seasonal peaks — especially during November and December, likely due to holiday sales. Sales dipped in January, consistent with post-holiday slowdowns. These insights can help with staffing, stock management, and marketing promotions.