-
Notifications
You must be signed in to change notification settings - Fork 103
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 missing values in Boolean columns #102
Comments
I don't usually use Pandas. I don't know what solution is best.
Which method do you think is better? |
Related: #100 |
Hi, thanks for the prompt answer ! I did a PR that respects Pandas Type Promotion so bool will be casted to object dtypes and let the user decide what they want to do with it. |
Thank you for your PR. I understood what kind of implementation should be done. |
I implemented it so that dtype and converter can be customized freely in the following branches. |
#80
Similar to the above issue, I ran into an issue with missing values in Boolean Columns. When parsing to pandas the conversion fails because we set the dtype to boolean while boolean does not support Na.
Could we add a try except Value Error around
PyAthena/pyathena/result_set.py
Line 429 in d202135
If it fails we could raise a warning and try again the DataFrame creation with relaxed constraints:
If needed I can write a PR once we agree on a solution !
Thanks
The text was updated successfully, but these errors were encountered: