Fracture_Webapp / mLogsFunctions /dataprocessing.py
Sonnt's picture
Upload 44 files
052f08d
raw
history blame contribute delete
460 Bytes
import pandas as pd
import streamlit as st
def columns_list(data:pd.DataFrame, no_depth:bool=None, no_well:bool=None):
columns_list = list(data.columns.unique())
columns_list.sort()
if "DEPTH" in columns_list and no_depth == True:
columns_list.remove("DEPTH")
if "WELL" in columns_list and no_well == True:
columns_list.remove("WELL")
return columns_list
def well_filter(df, well_name):
return df[df.WELL == well_name]