Maharashtra — Soil test results for Maharashtra farms including N, P, K, pH, EC, organic carbon, and micronutrients at village and district level
# Download from https://soilhealth.dac.gov.in/
import pandas as pd
df = pd.read_csv('soil_health_card.csv')
print(f"Total samples: {len(df)}")
deficient = df[df['Phosphorus_mg_kg'] < 12]
print(f"P-deficient samples: {len(deficient)}")| Field | Type | Description |
|---|---|---|
| village_code | string | Village administrative code |
| nitrogen_mg_kg | float | Available nitrogen in mg/kg |
| phosphorus_mg_kg | float | Available phosphorus in mg/kg |
| potassium_mg_kg | float | Available potassium in mg/kg |
| ph | float | Soil pH value |
| organic_carbon_percent | float | Percentage of organic carbon |