I am relatively new to python, I am using a for loop to load multiple csv files as data frames and plot these on the same plot. These data frames have two columns, one of these columns I have used:
df = df.loc[df['column name'] >= value]
to cut it below a value. This works, but now I am trying to get the other column to start at 0 (the different dataframes all have different values). So I am trying to get something like:
df= df['column2']-df['column2'][0]
I have tried the above and tried using df.skew and df.setindex to do that, One of these methods might work but I couldn't get it to work.