pandas df:
new_df[‘tissue‘] = new_df[‘tissue‘].str.lower()
<ipython-input-24-d2fb04c89c2a>:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy new_df[‘tissue‘] = new_df[‘tissue‘].str.lower()
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
原文:https://www.cnblogs.com/emanlee/p/14497914.html