How to find a mean between these 2 numbers in 1 column and update column built_up
with mean value? And also ignore the number that not in range.
built_up
0 1498-1602
1 1022-1187
2 1713-1970
3 2305-3396
4 1420
5 -
Here is my data - https://gist.github.com/datomnurdin/21b028b8ed213aacbe4ba4b71ccfe384
I already removed From
and sq. ft.
using this
df['built_up'] = df['built_up'].map(lambda x: x.lstrip('From ').rstrip(' sq. ft.'))