Spaces:
Sleeping
Sleeping
File size: 369 Bytes
71c85a4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import pandas as pd
import os
def load_data(file_path:str) -> pd.DataFrame:
"""Loads the data from the predefined path
Args:
file_path: Path of the Data
Returns pandas Dataframe"""
if not os.path.exists(file_path):
raise FileExistsError(f"File not found: {file_path}")
return pd.read_csv(file_path) |