Last active
January 4, 2023 19:26
-
-
Save topefolorunso/14acbddc43f3417909cd8bad4cb3539c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| from pandas.core.frame import DataFrame | |
| def extract(file_path: str) -> DataFrame: | |
| ''' | |
| extracts csv data and converts to pandas Dataframe | |
| args: | |
| file_path (str): path to the csv file | |
| returns: | |
| df (DataFrame): pandas dataframe containing the csv data | |
| ''' | |
| # exracts the csv data as pandas daaframe | |
| df = pd.read_csv(file_path) | |
| return df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment