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