pandas dataframe, copy by value

All functions in Python are “pass by reference”, there is no “pass by value”. If you want to make an explicit copy of a pandas object, try new_frame = frame.copy().

Leave a Comment