Created
June 3, 2020 06:36
-
-
Save niczky12/0a01d97aac76cc228b4c93bd8cab0a91 to your computer and use it in GitHub Desktop.
Create a toy CSV file
This file contains 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 sklearn import datasets | |
# load a toy dataset | |
data = datasets.load_boston() | |
boston_df = pd.DataFrame(data["data"], columns=data["feature_names"]) | |
# save as CSV | |
boston_df.to_csv("boston.csv", index=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment