Spaces:
Sleeping
Sleeping
File size: 301 Bytes
ad75d2d |
1 2 3 4 5 6 7 8 9 10 11 |
import pandas as pd
def process_file(uploaded_file):
if uploaded_file.name.endswith('.csv'):
return pd.read_csv(uploaded_file)
elif uploaded_file.name.endswith('.xlsx'):
return pd.read_excel(uploaded_file)
# Implement PDF and TIFF processing
else:
return None
|