Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect expectation for number of colums. In reality there are no problems. #1568

Closed
raffaem opened this issue Dec 21, 2024 · 1 comment
Closed

Comments

@raffaem
Copy link

raffaem commented Dec 21, 2024

Trying to read the attached CSV file from partyfacts results in problems:

df <- readr::read_csv("external-parties.csv", show_col_types = FALSE)
problems(df)[1,]

# A tibble: 1 × 5
row col expected actual file
<int> <int> <chr> <chr> <chr>
35519 15 17 columns 15 columns /home/raffaele/Downloads/external-parties.csv

But in reality there are no problems.

Row 35519:

BIH,elecglob,292,SNSD,Alliance of Independent Social Democrats,Alliance of Independent Social Democrats,1998,2014,19.1,2006,,,2019-02-08 19:26:26.193233+00:00,2021-03-12 10:15:38.362019+00:00,30450,292,2019-02-08 19:26:26.296626+00:00

Correctly contains 17 columns, not 15

external-parties.csv

@raffaem
Copy link
Author

raffaem commented Dec 21, 2024

It's a problem with the dataset, see hdigital/partyfactsdata#73

@raffaem raffaem closed this as completed Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant