-
Notifications
You must be signed in to change notification settings - Fork 20
/
raw_data.py
18 lines (16 loc) · 870 Bytes
/
raw_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st
import pandas as pd
def raw_data(las_file, well_data):
st.title('LAS File Data Info')
if not las_file:
st.warning('No file has been uploaded')
else:
st.write('**Curve Information**')
for count, curve in enumerate(las_file.curves):
# st.write(f"<b>Curve:</b> {curve.mnemonic}, <b>Units: </b>{curve.unit}, <b>Description:</b> {curve.descr}", unsafe_allow_html=True)
st.write(f" {curve.mnemonic} ({curve.unit}): {curve.descr}", unsafe_allow_html=True)
st.write(f"<b>There are a total of: {count+1} curves present within this file</b>", unsafe_allow_html=True)
st.write('<b>Curve Statistics</b>', unsafe_allow_html=True)
st.write(well_data.describe())
st.write('<b>Raw Data Values</b>', unsafe_allow_html=True)
st.dataframe(data=well_data)