I have a table that I am turning into a graph, so I am making it so that the percentages are just whole numbers. For example: 63.9 would be 64%. I have some percentages that are less than 1%, and I would prefer to not have them read 0%, and rather write, "less than 1%" or something like that. Is this possible? Below I wrote a line of code I tried, which runs, but I received a SettingWithCopyWarning, so there are no reflected changes.
national_df.loc[national_df['percent']==0.152416, 'percent']='less than 1%'