Difference between pandas functions: df.assign() vs df.reset_index()
Difference between pandas functions: df.assign() vs df.reset_index() Question: So lets say I have a DataFrame: stuff temp id 1 3 20.0 1 6 20.1 1 7 21.4 2 1 30.2 2 3 0.0 2 2 34.0 3 7 0.0 3 6 0.0 3 2 14.4 And I want to drop the index; what method is …