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

CSV format data download incorrectly formatted. #822

Open
rupertoverall opened this issue Dec 12, 2023 · 2 comments
Open

CSV format data download incorrectly formatted. #822

rupertoverall opened this issue Dec 12, 2023 · 2 comments

Comments

@rupertoverall
Copy link

A minor point, but the download buttons on trait pages (as in the attached screenshot ) offer CSV format and a helpful line of R code to read them in. The code will introduce errors though as the 6 header lines are not commented.

Best solution is to add '#' comments to the header lines (as suggested by the R and python code snippets).

Screenshot 2023-12-12 at 14 51 41
@ZulfiiaDitto
Copy link

@rupertoverall,
As a suggestion you can utilize the following script

import pandas as pd
trait = pd.read_csv('0026392353.csv', skiprows=7)

trait <- read.csv('10025905738.csv',skip = 7)

@rupertoverall
Copy link
Author

@ZulfiiaDitto
Yes - this what I have also been doing as a workaround. My comment was rather to the developers that this information should be included in the examples on the webpage. Commented-out lines are much friendlier to automated workflows.

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

2 participants