Skip to content
Discussion options

You must be logged in to vote

I have an idea. The process works with IDE like PyCharm. So you can download and store it as a CSV extension. Then load the dataset in Jupyter and proceed with the EDA. Here's the code:

import pandas as pd
from sklearn.datasets import fetch_california_housing

# Acquire the data
california_data = fetch_california_housing()

# Construct the dataset
features = pd.DataFrame(california_data['data'], columns=california_data['feature_names'])
label = pd.DataFrame(california_data['target'], columns=california_data['target_names'])
dataset = pd.concat([features, label], axis=1)

# Store the dataset as a CSV extension
output_path = 'california_housing_dataset.csv'
try:
    dataset.to_csv(output_path

Replies: 7 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@camillakathy
Comment options

Comment options

You must be logged in to vote
1 reply
@camillakathy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@camillakathy
Comment options

Answer selected by camillakathy
Comment options

You must be logged in to vote
2 replies
@shahriar-rahman
Comment options

@josh-scottt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants