Hello @Manash !
I understand that you are having some issues with your data calculations and visualization
i would kindly ask to post your code if possible so we can provide better help
- if you are using
pd.DataFrame.replace
,pd.DataFrame.drop
, etc., ensure you're either saving the result back to the dataframe or using theinplace=True
argument if that is your intention. - use
print
statements or usinghead()
to look at the results after each operation that leads to the creation of thecustomer_calculated_data
dataframe to pinpoint where the values might be getting changed. It might offer you insight on the flow - Double-check that you're not accidentally overwriting the calculated column anywhere in your code
- There is a chance your issue is caused with the order of operations where the dataframe is written to a file before the calculations are applied.
- Also if there is a Jupyter notebook you are using , try restarting the kernel and running the whole notebook or script again, there is a chance that the state of the session can affect the output an variables may not be cleared as expected when re-running cells. Unless these suggestions provided your solution please post some details about the code and how are you running it !
I hope this helps!
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards