diff --git a/data/data_packages/commons_rmfi/category_1.1.parquet b/data/data_packages/commons_rmfi/category_1.1.parquet index 8299826..3133bbc 100644 Binary files a/data/data_packages/commons_rmfi/category_1.1.parquet and b/data/data_packages/commons_rmfi/category_1.1.parquet differ diff --git a/data/data_packages/commons_rmfi/category_1.1.resource.yaml b/data/data_packages/commons_rmfi/category_1.1.resource.yaml index 44d29e6..76643fe 100644 --- a/data/data_packages/commons_rmfi/category_1.1.resource.yaml +++ b/data/data_packages/commons_rmfi/category_1.1.resource.yaml @@ -212,9 +212,9 @@ schema: constraints: unique: false example: Fee allocated to my staffing budget. - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10033 @@ -226,4 +226,4 @@ schema: enum: - '1.1' example: '1.1' -hash: bbe16e294ccaa173204324ff6fe1cf72 +hash: 840fb1971a1379df68ff225d2e82f129 diff --git a/data/data_packages/commons_rmfi/category_1.2.parquet b/data/data_packages/commons_rmfi/category_1.2.parquet index 5856e0b..f5bff8e 100644 Binary files a/data/data_packages/commons_rmfi/category_1.2.parquet and b/data/data_packages/commons_rmfi/category_1.2.parquet differ diff --git a/data/data_packages/commons_rmfi/category_1.2.resource.yaml b/data/data_packages/commons_rmfi/category_1.2.resource.yaml index 3c0ca52..cee4e19 100644 --- a/data/data_packages/commons_rmfi/category_1.2.resource.yaml +++ b/data/data_packages/commons_rmfi/category_1.2.resource.yaml @@ -229,9 +229,9 @@ schema: constraints: unique: false example: Kemyel Ltd - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10028 @@ -243,4 +243,4 @@ schema: enum: - '1.2' example: '1.2' -hash: bcc91294cf7ae586430cba4e1eab256d +hash: efee791d1c72ee63a22bc69dc49bf789 diff --git a/data/data_packages/commons_rmfi/category_1.parquet b/data/data_packages/commons_rmfi/category_1.parquet index 3238141..0342d59 100644 Binary files a/data/data_packages/commons_rmfi/category_1.parquet and b/data/data_packages/commons_rmfi/category_1.parquet differ diff --git a/data/data_packages/commons_rmfi/category_1.resource.yaml b/data/data_packages/commons_rmfi/category_1.resource.yaml index 3f2221e..ac3e40e 100644 --- a/data/data_packages/commons_rmfi/category_1.resource.yaml +++ b/data/data_packages/commons_rmfi/category_1.resource.yaml @@ -167,9 +167,9 @@ schema: constraints: unique: false example: 'False' - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10026 @@ -181,4 +181,4 @@ schema: enum: - '1' example: '1' -hash: a85e6c00af6eb5bf1b80bbf125587754 +hash: 1c42a1a2aec6d93b3713d4ccb32ed267 diff --git a/data/data_packages/commons_rmfi/category_10.parquet b/data/data_packages/commons_rmfi/category_10.parquet index b14314b..d7b57e0 100644 Binary files a/data/data_packages/commons_rmfi/category_10.parquet and b/data/data_packages/commons_rmfi/category_10.parquet differ diff --git a/data/data_packages/commons_rmfi/category_10.resource.yaml b/data/data_packages/commons_rmfi/category_10.resource.yaml index 81accc0..7775a23 100644 --- a/data/data_packages/commons_rmfi/category_10.resource.yaml +++ b/data/data_packages/commons_rmfi/category_10.resource.yaml @@ -168,9 +168,9 @@ schema: - Son - Spouse example: Brother - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/1193 @@ -182,4 +182,4 @@ schema: enum: - '10' example: '10' -hash: 4d5701b936d35c4a1f45ccfcf93e273e +hash: 7b8c71cda4b7811c8f20d85b948fb5b5 diff --git a/data/data_packages/commons_rmfi/category_2.parquet b/data/data_packages/commons_rmfi/category_2.parquet index cd885d7..ded9805 100644 Binary files a/data/data_packages/commons_rmfi/category_2.parquet and b/data/data_packages/commons_rmfi/category_2.parquet differ diff --git a/data/data_packages/commons_rmfi/category_2.resource.yaml b/data/data_packages/commons_rmfi/category_2.resource.yaml index fc8b2e2..09acc53 100644 --- a/data/data_packages/commons_rmfi/category_2.resource.yaml +++ b/data/data_packages/commons_rmfi/category_2.resource.yaml @@ -223,9 +223,9 @@ schema: constraints: unique: false example: Group of Labour Gedling Borough Councillors (Gedling Borough Labour Group) - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10000 @@ -237,4 +237,4 @@ schema: enum: - '2' example: '2' -hash: 58a3cd543bec45e1f0fc8485877461ec +hash: c1f5346185e8f0a440a17eb909351ca8 diff --git a/data/data_packages/commons_rmfi/category_3.parquet b/data/data_packages/commons_rmfi/category_3.parquet index 4665e4a..56474e2 100644 Binary files a/data/data_packages/commons_rmfi/category_3.parquet and b/data/data_packages/commons_rmfi/category_3.parquet differ diff --git a/data/data_packages/commons_rmfi/category_3.resource.yaml b/data/data_packages/commons_rmfi/category_3.resource.yaml index f76b276..5d506c2 100644 --- a/data/data_packages/commons_rmfi/category_3.resource.yaml +++ b/data/data_packages/commons_rmfi/category_3.resource.yaml @@ -211,9 +211,9 @@ schema: constraints: unique: false example: 'Charity number: 1108609' - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10009 @@ -225,4 +225,4 @@ schema: enum: - '3' example: '3' -hash: f8d7dd6b0572d9a09187f15e848636b5 +hash: d56e8f1ac03f98e6201a34e06cf89adc diff --git a/data/data_packages/commons_rmfi/category_4.parquet b/data/data_packages/commons_rmfi/category_4.parquet index 9cd5f7d..fc55ee3 100644 Binary files a/data/data_packages/commons_rmfi/category_4.parquet and b/data/data_packages/commons_rmfi/category_4.parquet differ diff --git a/data/data_packages/commons_rmfi/category_4.resource.yaml b/data/data_packages/commons_rmfi/category_4.resource.yaml index 3d28809..17de44e 100644 --- a/data/data_packages/commons_rmfi/category_4.resource.yaml +++ b/data/data_packages/commons_rmfi/category_4.resource.yaml @@ -388,9 +388,9 @@ schema: constraints: unique: false example: Dubai - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10168 @@ -402,4 +402,4 @@ schema: enum: - '4' example: '4' -hash: 01696bc3c4d5b43222818e2add9aec51 +hash: 3c813bf629288dc3a4064dc2ad6e7c2f diff --git a/data/data_packages/commons_rmfi/category_5.parquet b/data/data_packages/commons_rmfi/category_5.parquet index 588743d..28a35d9 100644 Binary files a/data/data_packages/commons_rmfi/category_5.parquet and b/data/data_packages/commons_rmfi/category_5.parquet differ diff --git a/data/data_packages/commons_rmfi/category_5.resource.yaml b/data/data_packages/commons_rmfi/category_5.resource.yaml index 219fb2e..7c7b054 100644 --- a/data/data_packages/commons_rmfi/category_5.resource.yaml +++ b/data/data_packages/commons_rmfi/category_5.resource.yaml @@ -275,9 +275,9 @@ schema: constraints: unique: false example: US non-profit endowment - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true enum: @@ -296,4 +296,4 @@ schema: enum: - '5' example: '5' -hash: ccdcc2cd1e84a406b79f1fdf21fa4423 +hash: 600315f2a9e40417ef25765a904a44db diff --git a/data/data_packages/commons_rmfi/category_6.parquet b/data/data_packages/commons_rmfi/category_6.parquet index 4e95f26..9104083 100644 Binary files a/data/data_packages/commons_rmfi/category_6.parquet and b/data/data_packages/commons_rmfi/category_6.parquet differ diff --git a/data/data_packages/commons_rmfi/category_6.resource.yaml b/data/data_packages/commons_rmfi/category_6.resource.yaml index 5716727..444dc29 100644 --- a/data/data_packages/commons_rmfi/category_6.resource.yaml +++ b/data/data_packages/commons_rmfi/category_6.resource.yaml @@ -217,9 +217,9 @@ schema: constraints: unique: false example: Agricultural - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10004 @@ -231,4 +231,4 @@ schema: enum: - '6' example: '6' -hash: 224c32f544375671afc2506ed407e72b +hash: 275814fd5ac82ca29362fe02cf7c576c diff --git a/data/data_packages/commons_rmfi/category_7.parquet b/data/data_packages/commons_rmfi/category_7.parquet index c6917a6..976aef6 100644 Binary files a/data/data_packages/commons_rmfi/category_7.parquet and b/data/data_packages/commons_rmfi/category_7.parquet differ diff --git a/data/data_packages/commons_rmfi/category_7.resource.yaml b/data/data_packages/commons_rmfi/category_7.resource.yaml index 56360f4..3ad702a 100644 --- a/data/data_packages/commons_rmfi/category_7.resource.yaml +++ b/data/data_packages/commons_rmfi/category_7.resource.yaml @@ -151,9 +151,9 @@ schema: constraints: unique: false example: DelegatedManagementCompany - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10005 @@ -165,4 +165,4 @@ schema: enum: - '7' example: '7' -hash: 0d13aee30d2984f826ff1dcd6f0c71fc +hash: abf131c257dca9f69adc076bf1b34eb8 diff --git a/data/data_packages/commons_rmfi/category_8.parquet b/data/data_packages/commons_rmfi/category_8.parquet index a5bc9b2..8406c41 100644 Binary files a/data/data_packages/commons_rmfi/category_8.parquet and b/data/data_packages/commons_rmfi/category_8.parquet differ diff --git a/data/data_packages/commons_rmfi/category_8.resource.yaml b/data/data_packages/commons_rmfi/category_8.resource.yaml index 83a361d..0b710aa 100644 --- a/data/data_packages/commons_rmfi/category_8.resource.yaml +++ b/data/data_packages/commons_rmfi/category_8.resource.yaml @@ -137,9 +137,9 @@ schema: - Other - Unpaid role example: Financial interest or material benefit - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/10007 @@ -151,4 +151,4 @@ schema: enum: - '8' example: '8' -hash: 565c253457061b5e9c50fe6187260a4d +hash: 88463ce097b0bec507bc5e577a571530 diff --git a/data/data_packages/commons_rmfi/category_9.parquet b/data/data_packages/commons_rmfi/category_9.parquet index 2a389d6..e2e4f73 100644 Binary files a/data/data_packages/commons_rmfi/category_9.parquet and b/data/data_packages/commons_rmfi/category_9.parquet differ diff --git a/data/data_packages/commons_rmfi/category_9.resource.yaml b/data/data_packages/commons_rmfi/category_9.resource.yaml index 4b2c7e4..7629c53 100644 --- a/data/data_packages/commons_rmfi/category_9.resource.yaml +++ b/data/data_packages/commons_rmfi/category_9.resource.yaml @@ -158,9 +158,9 @@ schema: - Son - Spouse example: Brother - - name: link_1 + - name: api_link type: string - description: + description: Link to the API endpoint for the interest constraints: unique: true example: https://interests-api.parliament.uk/api/v1/Interests/2686 @@ -172,4 +172,4 @@ schema: enum: - '9' example: '9' -hash: 41fe9318b16eb52a03816fc3fa953984 +hash: 9670bd8188af4c31f0a59e7c9b1d9461 diff --git a/src/parl_register_interests/official_data.py b/src/parl_register_interests/official_data.py index 17e7917..24014db 100644 --- a/src/parl_register_interests/official_data.py +++ b/src/parl_register_interests/official_data.py @@ -118,6 +118,7 @@ def process_register(register_date: date): date_str = [x if x != "NaT" else "" for x in date_str] df[col] = date_str + df = df.rename(columns={"link_1": "api_link"}) df.to_parquet(package_dir / f"{name}.parquet") df = df[all_columns] collected_df.append(df)