0

So I sometimes face a common error of "You're trying to change in a copy data frame", and I don't know exactly how to know if the function I use returns a copy or a new original data frame , this's an example I faced with "loc" function :

separation_df = separation_df.loc[ (separation_df['Concepts Required']).notnull() | (separation_df['Job Skills']).notnull() | (separation_df['Main Activities'].notnull())   ]

Is the result of this operation a new original DF in separation DF or a subset copy of the original, or here i accessed the subset of the separation_df directly?

And how to know if any function returns a copy or a subset from the original or a new Df ?

0 Answers0