-
Notifications
You must be signed in to change notification settings - Fork 2
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
Pandas.DataFrame.to_csv() unexpected argument sparsify #12
Labels
Comments
I can’t even find this parameter in the OLD version of pandas documentation. . Probably was undocumented parameter — how did you even find it? . Agree with removing but need to figure out what it will do. pandas manual has a section of sparsified data structures. HAs to do , I think, with multi-indices.
… On Feb 4, 2017, at 10:46 AM, Karl ***@***.***> wrote:
Received an error writing vcf output. Apparently pandas.DataFrame.to_csv() doesn't accept the "sparsify" argument (anymore?). Not sure what it is supposed to do, but commenting it out stops the error and still produces a vcf file. If we can't remember where this came from, I propose we remove that argument from this particular to_csv call.
Pandas 0.19.1
See the offending line in output.VCF here <https://github.com/blachlylab/mucor/blob/master/output.py#L399>
Traceback (most recent call last):
File "/home/karl/Tools/mucor/mucor.py", line 699, in
main()
File "/home/karl/Tools/mucor/mucor.py", line 690, in main
printOutput(config, str(config.outputDir), varDF)
File "/home/karl/Tools/mucor/mucor.py", line 649, in printOutput
ow.write(varDF,format,outputDirName,config)
File "/home/karl/Tools/mucor/output.py", line 95, in write
self.supported_formats[format]()
File "/home/karl/Tools/mucor/output.py", line 399, in VCF
out.to_csv(ofVariantVCF, sep='\t', na_rep='?', index=False, header=True, sparsify=False)
TypeError: to_csv() got an unexpected keyword argument 'sparsify'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#12>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFtbUUlYqinAfJznR_-WcVEoQOcUm1Mxks5rZJ05gaJpZM4L3Lvo>.
|
I got that error by simply trying to write vcf output. Something about my current environment must be different than before - Pandas 0.17 vs 0.19 maybe? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Received an error writing vcf output. Apparently pandas.DataFrame.to_csv() doesn't accept the "sparsify" argument (anymore?). Not sure what it is supposed to do, but commenting it out stops the error and still produces a vcf file. If we can't remember where this came from, I propose we remove that argument from this particular to_csv call.
Pandas 0.19.1
See the offending line in output.VCF here
The text was updated successfully, but these errors were encountered: