I get this csv from my program and i want to get the “thickness”/difference of each of my Depth values.
So for example 3998 - 4002 = -4
is there a way to use this csv or is it useless because i couldn’t find anything that would solve my problem.
JavaScript
x
11
11
1
df = pd.read_csv ('/PermeabilityData.csv',sep=";")
2
display(df)
3
4
a = df['Depth [ft]'].loc[data.index[0]]
5
Depth [ft] Permeability [mD]
6
0 3998-4002 180
7
1 4002-4004 150
8
2 4004-4006 200
9
3 4006-4008 140
10
4 4008-4010 160
11
Advertisement
Answer
This could also be done:
JavaScript
1
4
1
pd.eval(df.iloc[:,0])
2
3
[-4, -2, -2, -2, -2]
4