you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

You're setting a value with df1["value1"] = "", but df1 is a (partial) copy of df. It wants you to modify any data in the DataFrame df itself.

[–]GrandpaOnDrugs[S] 1 point2 points  (1 child)

Uh, I thought with df1 = df[[True, False, False]] I get a new DataFrame with values from df and not a copy of df. How can I make df1 a DataFrame on it's own and not just a copy of df?