Confusion re: pandas copy of slice of dataframe warning
I've looked through a bunch of questions and answers related to this issue, but I'm still finding that I'm getting this copy of slice warning in places where I don't expect it. Also, it's cropping up in code that was running fine for me previously, leading me to wonder if some sort of update may be the culprit. For example, this is a set of code where all I'm doing is reading in an Excel file into a pandas DataFrame , and cutting down the set of columns included with the df[[]] syntax. izmir = pd.read_excel(filepath) izmir_lim = izmir[['Gender','Age','MC_OLD_M>=60','MC_OLD_F>=60','MC_OLD_M>18'