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

Support multiple characters for comment in read_csv #21725

Closed
orangeSi opened this issue Jul 4, 2018 · 6 comments
Closed

Support multiple characters for comment in read_csv #21725

orangeSi opened this issue Jul 4, 2018 · 6 comments
Labels
Duplicate Report Duplicate issue or pull request Enhancement IO CSV read_csv, to_csv

Comments

@orangeSi
Copy link

orangeSi commented Jul 4, 2018

my code is:

vcf = pd.read_table("com8-2.N85-2.merge.snp.vcf", header=0, sep="\t", comment="##")

and get this error:

ValueError: Only length-1 comment characters supported
the error means the length of comment must be one ? why not allowed for two characters ?

The python version is python3.6,
pandas version is pandas-0.20.3

thanks~
Si

@TomAugspurger TomAugspurger changed the title ValueError: Only length-1 comment characters supported for comment Support multiple characters for comment in read_csv Jul 4, 2018
@TomAugspurger TomAugspurger added Enhancement IO CSV read_csv, to_csv labels Jul 4, 2018
@TomAugspurger TomAugspurger added this to the Someday milestone Jul 4, 2018
@TomAugspurger
Copy link
Contributor

It doesn't look like this will be easy to support, but people are welcome to try to implement it if they want.

@jreback
Copy link
Contributor

jreback commented Jul 4, 2018

dupe of #8727

@jreback jreback closed this as completed Jul 4, 2018
@jreback jreback added the Duplicate Report Duplicate issue or pull request label Jul 4, 2018
@krishdb38
Copy link

me same Problem
ValueError: Only length-1 comment characters supported
df = pd.read_csv("/BiO/Preterm/raw_data/1009/1009.vcf", comment="##",low_memory = False)
i am doing reasearch in genome data
very difficult to convert medical data to pandas df

@nameOnStone
Copy link

the same problem, it's really weired

@bioXiaoheng
Copy link

Same here

@Lewis-W-S-Fisher
Copy link

Did this get a fix or anything, I'm having this problem too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Enhancement IO CSV read_csv, to_csv
Projects
None yet
Development

No branches or pull requests

7 participants