It does not always make sense and I've additionally learned from here to not use inplace=True in pandas. As a result, my code often looks like this:
df = pd.read_csv("path_to_file.csv")
df1 = df.drop(columns_to_be_deleted, axis = "columns")
df2 = df1.apply(lambda x: my_own_function(x), axis = 1)
...
df6 = df5.apply(lambda x: my_other_function(x), axis = 1)
This especially leads to problems when I try and insert a new modification later on ("df_1_a", "df_1_b"). A way to prevent this is labeling the dataframes more meaningful like "df_applied_f1". However, this approach becomes annoying when working a lot with the long name.
Are there any best practices available how to deal with this problem?