unknownBrain's picture
Upload all remaining preprocessing, standalone, test and utility files
ee594f0 verified
Raw History Blame Contribute Delete
481 Bytes
import pandas as pd
# Path to your metadata file
file_path = "clinicaldata.csv"
# Load the data as a CSV
# If it throws a Unicode error, sometimes adding encoding='latin1' or encoding='utf-8-sig' helps
try:
df = pd.read_csv(file_path)
except UnicodeDecodeError:
df = pd.read_csv(file_path, encoding='latin1')
# Print the column names
print("Available columns in the dataset:")
print(df.columns.tolist())
# Show the first 5 rows
print("\nFirst 5 rows:")
print(df.head())