UK Politician data

post_identifiers.csv

Version: 0.16.0

Return to data package page.


Integrating with code

Using Python

Install the mysoc-dataset package. You can then use the following code to get this file.


        from mysoc_dataset import get_dataset_url, get_dataset_df

        # get the url of dataset
        url = get_dataset_url(
            repo_name="politician_data",
            package_name="uk_politician_data",
            version_name="0.16.0",
            file_name="post_identifiers.csv",
        )
        
        
        # get a pandas dataframe
        df = get_dataset_df(
            repo_name="politician_data",
            package_name="uk_politician_data",
            version_name="0.16.0",
            file_name="post_identifiers.csv",
        )
        
      

You can also use this package as a command-line tool:


        mysoc-dataset download \
        --repo politician_data \
        --package uk_politician_data \
        --version 0.16.0 \
        --file post_identifiers.csv
      

Use mysoc-dataset --help for all options.


Can you help us with funding by telling us more about yourself?