Access-Local-Kaggle-Dataset

Sat 17 May 2025

import pandas as pd
df = pd.read_csv('~/datasets/kaggle/kc_house_data.csv')
df.head()
id date price bedrooms bathrooms sqft_living sqft_lot floors waterfront view ... grade sqft_above sqft_basement yr_built yr_renovated zipcode lat long sqft_living15 sqft_lot15
0 7129300520 20141013T000000 221900.0 3 1.00 1180 5650 1.0 0 0 ... 7 1180 0 1955 0 98178 47.5112 -122.257 1340 5650
1 6414100192 20141209T000000 538000.0 3 2.25 2570 7242 2.0 0 0 ... 7 2170 400 1951 1991 98125 47.7210 -122.319 1690 7639
2 5631500400 20150225T000000 180000.0 2 1.00 770 10000 1.0 0 0 ... 6 770 0 1933 0 98028 47.7379 -122.233 2720 8062
3 2487200875 20141209T000000 604000.0 4 3.00 1960 5000 1.0 0 0 ... 7 1050 910 1965 0 98136 47.5208 -122.393 1360 5000
4 1954400510 20150218T000000 510000.0 3 2.00 1680 8080 1.0 0 0 ... 8 1680 0 1987 0 98074 47.6168 -122.045 1800 7503

5 rows × 21 columns



Score: 5

Category: kaggle


Download

Sat 17 May 2025
import os
import pandas as pd
from kaggle.api.kaggle_api_extended import KaggleApi
from io import BytesIO
import zipfile
# Authenticate with Kaggle
api = KaggleApi()
api.authenticate()
!kaggle datasets files zillow/zecon
name                           size  creationDate         
----------------------------  -----  -------------------  
City_time_series.csv          658MB  2019-09-21 10:26:35  
CountyCrossWalk_Zillow.csv    227KB  2019-09-21 10:26:18  
County_time_series.csv        108MB …

Category: kaggle

Read More

Download-2

Sat 17 May 2025

# !pip install kagglehub
import kagglehub

# Download latest version
path = kagglehub.dataset_download("harlfoxem/housesalesprediction")

print("Path to dataset files:", path)
/home/rajaraman/miniconda3/envs/ml312/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install …

Category: kaggle

Read More
Page 1 of 1