Description: Demystifying the art and science of writing code
I was working a solution to a StackoverFlow question and felt I could elaborate on the answer just a tiny bit.
In the original question, the questioner asked why they were unable to assign a decimal value (a float) to a cell in a pandas DataFrame. You can see the original question here .
QUESTION: The question focused on trying to assign the answer to the following division equation to a cell in column 1 and row 1. Instead of getting a float, an integer is stored in that cell. in: df['column1']['row1'] = 1 / 331616 in: df['column1']['row1'] out: 0