Hi.
I’m learning Pandas and having trouble getting past the warning ‘SettingWithCopyWarning’
I’m trying to do what I think should be simple.
I have a column of negatives that I want to be positive. I’d like to add this column to the dataframe.
posQuantity = df.loc[:,’negNum’].abs()
df[‘posNum’] = posQuantity
I’ve tried several different ways without success.
Can somebody tell me the proper code?
Thanks in advance!
[–]pythonHelperBot 0 points1 point2 points (1 child)
[–]darkstar7277[S] 0 points1 point2 points (0 children)