File size: 460 Bytes
052f08d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]