I'm upgrading my pandas library version from 0.25.* to 1.2.2(latest version).
During the below code the output values are getting changed.
ffilled = df.groupby('masterpatientid')[vtl_cols].fillna(method='ffill')
ffilled['masterpatientid'] = df.masterpatientid
The values are changing from -
14.142135999999999 to 14.142136
50.381046000000005 to 50.381046
1.7320508000000001 to 1.7320508
Although the changes are minimal, I really want to know the reason behind them. I have read the docs and the latest changes made in pandas but couldn't arrive at any conclusion.
Would appreciate it if someone could help.
from Upgrading pandas causing output variations
No comments:
Post a Comment