i have a basic data frame as shown below.
if i select a column 1 , how can i print all the cells from that given column
here is the code i have so far. thx so much for the help in advance !!
import streamlit as st
import pandas as pd
uploaded_file = st.file_uploader(‘Choose a XLSX file’, type=‘xlsx’)
df = pd.read_excel(uploaded_file, engine='openpyxl') df= df.head(4) df
columns = df.columns.tolist()
selected_columns = st.multiselect(“select instance”, columns)
df.columns = df.columns.str.strip()