Example output is: 8993 / 18782 I see some questions like that, but all of them was about “float”. I want to make these integers like that: 8,9K / 18,7K What is the “proper” way to do that? Answer Try this function: And replace your final line of code with the function: Also, if you don’t want to add a
Tag: number-formatting
Format / Suppress Scientific Notation from Pandas Aggregation Results
How can one modify the format for the output from a groupby operation in pandas that produces scientific notation for very large numbers? I know how to do string formatting in python but I’m at a loss when it comes to applying it here. This suppresses the scientific notation if I convert to string but now I’m just wondering how