The census data in India is available at http://www.censusindia.gov.in/, the official website for the India census.
Here are the steps to get some data for a speicifc district:
Once the data has been downloaded, save it as a CSV file and load the data into a python list using:
numpyinto a numpy array
pandasinto a Data Frame
Now we need to match each row in our data to a Wikidata page which needs the population data.
To ensure that the page is correct, some possible options are:
First, read the ItemPage and check that the property already exists.