Feb-10-2023, 08:41 AM
Hi everyone,
I have a dataframe (df2) with about 5 columns and I want to difference one column and keep the other columns. Do you know how I do that in python code.
I have a dataframe (df2) with about 5 columns and I want to difference one column and keep the other columns. Do you know how I do that in python code.
df_differenced = df2.diff().dropna()Thanks