I am currently utilizing the sac.transfer listbox from the streamlit_antd_components, which functions effectively. However, I am seeking guidance on how to retrieve the selected item value from the target source list box to use as column names in a pandas DataFrame.
below is my code
import streamlit_antd_components as sac
import pandas as pd
sac.transfer(items=[f’item{i}’ for i in range(30)], label=‘label’, index=[0, 1], titles=[‘source’, ‘target’], reload=True , align=‘center’, search=True, pagination=True)
df = pddatafram(sac.transfer() ???