Dropping commas from cells after updating to version 4.0.0
See original GitHub issueImportant: Please do not post usage questions here.
To get a quick response, please ask a question on Stack Overflow using gspread tag.
See existing questions: https://stackoverflow.com/questions/tagged/gspread
Describe the bug A clear and concise description of what the bug is. After Aug 1 update it seems that cells with comma are being returned without comma. Major issue for our application.
To Reproduce Steps to reproduce the behavior:
- Read spreadsheet with comma in some cells of the column. “X,Y” becomes “XY”
- There is no way to restore comma
- Existing utilities are not working correctly
Expected behavior A clear and concise description of what you expected to happen. “X,Y” should be returned as “X,Y”
Code example* If applicable, provide a code example to help explain your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Environment info:
- Operating System [e.g. Linux, Windows, macOS]:
- Python version
- gspread version
Stack trace or other output that would be helpful
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9

Top Related StackOverflow Question
Hi @LevaL59 I found the issue.
In latest released we introduced a quick, in spreadSheet any value returned is a string, we have a function that take that string and tries to convert it to a number so users can work with
intorfloatsin python. This function replaces comma,in the string (spreadsheet sometimes introduces comma to separate thousands, like1,000) but it does so on the actual values.I’ll make a PR to fix it.
@LevaL59
I plan to make some major changes in the code format, re-organize files etc, so I made a quick release for your issue. you can now use version v4.0.1 which includes the bugfix for your issue.