playing around with borehole data

This commit is contained in:
Khalim Conn-Kowlessar 2023-06-16 11:43:24 +01:00
parent 3693ade68f
commit 8989b1e5eb
2 changed files with 21 additions and 1 deletions

View file

@ -108,3 +108,20 @@ def handler():
],
addresses=address_meta
)
from dbfread import DBF
import os
from tqdm import tqdm
import pandas as pd
borehole_file = os.path.abspath(os.path.dirname(__file__)) + "/model_data/local_data/borehole/borehole.dbf"
table = DBF(borehole_file)
borehole_data = [x for x in tqdm(table, total=len(table))]
# Let's take a sample
borehole_sample = borehole_data[:1000]
df = pd.DataFrame(borehole_sample)
import geopandas as gpd
borehole_shape_file = os.path.abspath(os.path.dirname(__file__)) + "/model_data/local_data/borehole/borehole.shp"
boreholes = gpd.read_file(borehole_shape_file)

View file

@ -8,4 +8,7 @@ mock
pytest-cov
pytest-mock
fuzzywuzzy
python-Levenshtein
python-Levenshtein
dbfread
geopandas
geopy