please see code and return
new to Python and really appreciate your help!
df['Height'] = df['Wall Top'] - df['Elevation']
please see code and return
new to Python and really appreciate your help!
df['Height'] = df['Wall Top'] - df['Elevation']
The columns of your df are of different types. if you type:
df.dtypes
You'll see that one is str and one is float, or both are object type. You need to do this:
df['Height'] = df['Wall Top'].astype(float) - df['Elevation'].astype(float)
It should do the calculation you want.