-
Notifications
You must be signed in to change notification settings - Fork 22
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
buggy behavior when dealing with decimals? #29
Comments
@ivanlen I suspect that a Google spreadsheet's locale settings determine not just the default display formatting of numbers and dates, but also the parsing format rules when interpreting cell value inputs that are in mode Would you be willing to try the following:
(I suspect the solution to the problem will be either: A) Allow overrides to the B) Add locale awareness to set_with_dataframe in some fashion, so that formatting inputs using values from the dataframe take the expected locale of the spreadsheet into consideration.) |
Hey @robin900 , thanks for your reply. The location that causes the bug was Spain. I am actually from Argentina and if a set settings to Argentina the problem persists as well. I suspect there is something with the Spanish language and formatting. Probably any Country that speaks Spanish will have the same behavior. I am currently in the middle of some projects, but If I have some free time I will inspect the source code of your project and see if I can implement any of your solutions. |
@ivanlen He subido un PR #30 que arregla el problema con locales no de EEUU, sin causar regresiones en el paquete de pruebas. Este PR soluciona el problema para valores numéricos pero no para valores de fecha/datetime. Creo que una solución para valores de fecha/datetime no debe ser incluido en el PR porque 1) no hace falta en este momento porque Si tienes un momento y pudieras revisar y probar este PR, te lo agradecería! |
@ivanlen Release 3.1.1 with this fix ya está en PyPI. Gracias por su ayuda! |
Hey @robin900 , sorry that I wasn't able to test it before! But Im glad that my Issue helps to improve the overall quality of the package. I will update my version to 3.1.1 Thank you for maintaining this repo, |
Hey, I am dealing with this behavior and I don't know if its a bug or I am doing something wrong:
Expected:
Obtained:
And if i go to the cell A1 and copy the cell value is
-9622382525353560
I thought it was something with the formatting, but this number is not a float.
If I export the df using
set_with_dataframe(worksheet, test_df.round(3))
I obtain the following:
And this is a the same test in a new blank worksheet (to avoid any kind of previous formatting problems)
Please let me know if there is something that I can do to help you with a PR.
The text was updated successfully, but these errors were encountered: