Skip to content

Instantly share code, notes, and snippets.

@andrea-dagostino
Created July 6, 2022 13:27
Show Gist options
  • Select an option

  • Save andrea-dagostino/e843b4c9809d02eb4b8d2b50e6c38d90 to your computer and use it in GitHub Desktop.

Select an option

Save andrea-dagostino/e843b4c9809d02eb4b8d2b50e6c38d90 to your computer and use it in GitHub Desktop.
edaeng
# carichiamo il dataset
wine = load_wine()
# convertiamo il dataset in un dataframe Pandas
df = pd.DataFrame(data=wine.data, columns=wine.feature_names)
# creiamo la colonna per il target
df["target"] = wine.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment