Skip to content

Commit

Permalink
Add api link description
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 5, 2024
1 parent 2092bc1 commit c31654b
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 36 deletions.
Binary file modified data/data_packages/commons_rmfi/category_1.1.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_1.1.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -226,4 +226,4 @@ schema:
enum:
- '1.1'
example: '1.1'
hash: bbe16e294ccaa173204324ff6fe1cf72
hash: 840fb1971a1379df68ff225d2e82f129
Binary file modified data/data_packages/commons_rmfi/category_1.2.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_1.2.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -243,4 +243,4 @@ schema:
enum:
- '1.2'
example: '1.2'
hash: bcc91294cf7ae586430cba4e1eab256d
hash: efee791d1c72ee63a22bc69dc49bf789
Binary file modified data/data_packages/commons_rmfi/category_1.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_1.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -181,4 +181,4 @@ schema:
enum:
- '1'
example: '1'
hash: a85e6c00af6eb5bf1b80bbf125587754
hash: 1c42a1a2aec6d93b3713d4ccb32ed267
Binary file modified data/data_packages/commons_rmfi/category_10.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_10.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -182,4 +182,4 @@ schema:
enum:
- '10'
example: '10'
hash: 4d5701b936d35c4a1f45ccfcf93e273e
hash: 7b8c71cda4b7811c8f20d85b948fb5b5
Binary file modified data/data_packages/commons_rmfi/category_2.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_2.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -237,4 +237,4 @@ schema:
enum:
- '2'
example: '2'
hash: 58a3cd543bec45e1f0fc8485877461ec
hash: c1f5346185e8f0a440a17eb909351ca8
Binary file modified data/data_packages/commons_rmfi/category_3.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_3.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -225,4 +225,4 @@ schema:
enum:
- '3'
example: '3'
hash: f8d7dd6b0572d9a09187f15e848636b5
hash: d56e8f1ac03f98e6201a34e06cf89adc
Binary file modified data/data_packages/commons_rmfi/category_4.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_4.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -402,4 +402,4 @@ schema:
enum:
- '4'
example: '4'
hash: 01696bc3c4d5b43222818e2add9aec51
hash: 3c813bf629288dc3a4064dc2ad6e7c2f
Binary file modified data/data_packages/commons_rmfi/category_5.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_5.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -296,4 +296,4 @@ schema:
enum:
- '5'
example: '5'
hash: ccdcc2cd1e84a406b79f1fdf21fa4423
hash: 600315f2a9e40417ef25765a904a44db
Binary file modified data/data_packages/commons_rmfi/category_6.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_6.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -231,4 +231,4 @@ schema:
enum:
- '6'
example: '6'
hash: 224c32f544375671afc2506ed407e72b
hash: 275814fd5ac82ca29362fe02cf7c576c
Binary file modified data/data_packages/commons_rmfi/category_7.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_7.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -165,4 +165,4 @@ schema:
enum:
- '7'
example: '7'
hash: 0d13aee30d2984f826ff1dcd6f0c71fc
hash: abf131c257dca9f69adc076bf1b34eb8
Binary file modified data/data_packages/commons_rmfi/category_8.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_8.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -151,4 +151,4 @@ schema:
enum:
- '8'
example: '8'
hash: 565c253457061b5e9c50fe6187260a4d
hash: 88463ce097b0bec507bc5e577a571530
Binary file modified data/data_packages/commons_rmfi/category_9.parquet
Binary file not shown.
6 changes: 3 additions & 3 deletions data/data_packages/commons_rmfi/category_9.resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -172,4 +172,4 @@ schema:
enum:
- '9'
example: '9'
hash: 41fe9318b16eb52a03816fc3fa953984
hash: 9670bd8188af4c31f0a59e7c9b1d9461
1 change: 1 addition & 0 deletions src/parl_register_interests/official_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c31654b

Please sign in to comment.