Created
August 31, 2023 13:49
-
-
Save csaguiar/8772f593efff681e53986f303f2c2ef3 to your computer and use it in GitHub Desktop.
Data module (load)
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
| CSV_URL = "https://raw.githubusercontent.com/mlflow/mlflow/master/tests/datasets/winequality-red.csv" | |
| def load_data() -> pd.DataFrame: | |
| try: | |
| data = pd.read_csv(CSV_URL, sep=";") | |
| except Exception as e: | |
| logger.exception( | |
| "Unable to download training & test CSV, " | |
| "check your internet connection. Error: %s", e | |
| ) | |
| return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment