Reputation: 11
I am trying to do the following.
df_county_outcomes['county'] = df_county_outcomes['county'].apply(lambda x : '0' + str(x) if len(str(x)) == 1 else str(x))
I get the correct result but the SettingWithCopyWarning will always be there. Can someone help? Thanks a lot in advance!
Upvotes: 1
Views: 33