-
Notifications
You must be signed in to change notification settings - Fork 51
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
DtypeWarning: Columns (7) have mixed types. #70
Comments
Hi, let me look at it. There is probably something strange in the GPL file. Maybe editing - the file would do the trick. Assuming this is only one timer this could be a good solution. Anyway, taking look at the GPL file would shed some light on what is really the reason. |
Could it be that the chromosome column starts out as an int, and then becomes a str?
Pandas may guess that it's an int and then get confused... As I said, I'm not super familiar with pandas, but I suppose there is a way to let it know the datatype of each column. However, I don't know how GEOparse invokes Pandas. |
Indeed, this seems that this is a problem. Currently, the package does not allow to pass kwargs to Pandas. However, if the code is in some script and it influences the behaviour you could convert the type after the data is read. |
Seems not to cause any problem TBH. It's just a bit of a weird looking error.. You could probably get away with the Thanks for help, |
The following code is generating a warning for me:
The output is:
I get that this error is coming from pandas, but I'm not sure how to fix it.
The text was updated successfully, but these errors were encountered: