File size: 370 Bytes
91ae24c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import streamlit as st
import subprocess
import pandas as pd
# import StringIO
from io import StringIO


st.title("Hello World")
st.write("This is a test")
output = subprocess.check_output("df -h", shell=True)


# make it a dataframe
df = pd.read_csv(StringIO(output.decode("utf-8")), sep="\s+")
df = df.drop(columns=["Mounted", "on"])

# show the dataframe
st.write(df)