You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uploaded_file = st.file_uploader("اختر ملف CSV أو Excel", type=['csv', 'xlsx'])
if uploaded_file is not None:
if uploaded_file.name.endswith('.csv'):
df = pd.read_csv(uploaded_file)
else:
df = pd.read_excel(uploaded_file)
st.write("تم تحميل البيانات بنجاح!")
st.dataframe(df.head()) # عرض أول 5 صفوف
#61