Skip to content

Instantly share code, notes, and snippets.

@csaguiar
Created August 31, 2023 13:49
Show Gist options
  • Select an option

  • Save csaguiar/8772f593efff681e53986f303f2c2ef3 to your computer and use it in GitHub Desktop.

Select an option

Save csaguiar/8772f593efff681e53986f303f2c2ef3 to your computer and use it in GitHub Desktop.
Data module (load)
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