District-wise, season-wise, crop-wise area (ha), production (tonnes), and yield data for Maharashtra from 1997 onwards
# Download from https://data.gov.in/
import pandas as pd
df = pd.read_csv('crop_production_statistics.csv')
mh = df[df['State'] == 'Maharashtra']
print(f"Maharashtra: {len(mh)} records")
print(mh.groupby('Crop')['Production'].sum().sort_values(ascending=False).head())| Field | Type | Description |
|---|---|---|
| state | string | State name |
| district | string | District name |
| crop_year | int | Agricultural year |
| crop | string | Crop name |
| area_ha | float | Area under cultivation in hectares |
| production_tonnes | float | Total production in tonnes |