Skip to content
Public-source data

Bike Sharing Demand Dataset

Explore historical hourly and daily rental counts from Capital Bikeshare. Use the UCI Bike Sharing dataset to practice time-based analysis with calendar and weather information.

Good for: time-series grouping, visualization, and a first one-table analysis.

Download this dataset

Pick the format that fits your project. Downloads are free with an account, and you can create one in the same step.

While it downloads: answer 5 questions in your browser

Run SQL on these tables right here, with no setup. Each answer is checked instantly, and every question comes with hints.

Preview the data

Explore a sample before downloading. Select a table to see its columns, row count, relationships, and what each row represents.

Hour

One row represents: One row per observed hour.

Rows in this table
17,379
Connects to
Day

Sample rows · download for the full table

Sample rows from hour. This preview is not the full download.
instantdtedayseasonyrmnthhrholidayweekdayworkingdayweathersittempatemp
12011-01-01101006010.240.2879
22011-01-01101106010.220.2727
32011-01-01101206010.220.2727
42011-01-01101306010.240.2879
52011-01-01101406010.240.2879

Hour data dictionary

Check identifiers, dates, numeric fields, and missing values before writing a query or building a chart.

ColumnWhat it meansData typeMissing valuesKey or requirement
instantSource row number.integer0Required
dtedayCalendar date.date0Required
seasonSeason code 1-4.integer0Required
yr0 for 2011; 1 for 2012.integer0Required
mnthMonth 1-12.integer0Required
hrHour 0-23.integer0Required
holidayHoliday indicator.integer0Required
weekdayWeekday code.integer0Required
workingdayWorking-day indicator.integer0Required
weathersitWeather situation code.integer0Required
tempNormalized temperature.decimal0Required
atempNormalized apparent temperature.decimal0Required
humNormalized humidity.decimal0Required
windspeedNormalized wind speed.decimal0Required
casualCasual rentals.integer0Required
registeredRegistered rentals.integer0Required
cntTotal rentals.integer0Required
View the full data dictionary

hour

One row represents: One row per observed hour.

ColumnWhat it meansData typeMissing valuesKey or requirement
instantSource row number.integer0Required
dtedayCalendar date.date0Required
seasonSeason code 1-4.integer0Required
yr0 for 2011; 1 for 2012.integer0Required
mnthMonth 1-12.integer0Required
hrHour 0-23.integer0Required
holidayHoliday indicator.integer0Required
weekdayWeekday code.integer0Required
workingdayWorking-day indicator.integer0Required
weathersitWeather situation code.integer0Required
tempNormalized temperature.decimal0Required
atempNormalized apparent temperature.decimal0Required
humNormalized humidity.decimal0Required
windspeedNormalized wind speed.decimal0Required
casualCasual rentals.integer0Required
registeredRegistered rentals.integer0Required
cntTotal rentals.integer0Required

day

One row represents: One row per calendar date.

ColumnWhat it meansData typeMissing valuesKey or requirement
instantSource row number.integer0Required
dtedayCalendar date.date0Required
seasonSeason code 1-4.integer0Required
yr0 for 2011; 1 for 2012.integer0Required
mnthMonth 1-12.integer0Required
holidayHoliday indicator.integer0Required
weekdayWeekday code.integer0Required
workingdayWorking-day indicator.integer0Required
weathersitWeather situation code.integer0Required
tempNormalized temperature.decimal0Required
atempNormalized apparent temperature.decimal0Required
humNormalized humidity.decimal0Required
windspeedNormalized wind speed.decimal0Required
casualCasual rentals.integer0Required
registeredRegistered rentals.integer0Required
cntTotal rentals.integer0Required

About the data

These historical observations are useful for exploring patterns over time. Start with the daily file for a simpler analysis, or use hourly records for more detailed comparisons.

Weather and temperature fields are encoded or normalized, so read the source definitions before you interpret them.

What one row represents
Varies by source table
Data covers
Start: 2011-01-01 · End: 2012-12-31
Dataset version
1.0.1
Release published
2026-11-23

How the tables connect

Generated from the same relationship metadata as the table documentation.

HourdtedayDaydteday

many-to-one

Start your first analysis

Open a download, inspect the table, and answer one question.

Start with Excel

Use the prepared hourly workbook to build a simple demand profile.

Download Excel
File used
bike-sharing-v1.0.1-analysis.xlsx
Dataset version
1.0.1
File size
945.4 KB
  1. 01Open "bike-sharing-v1.0.1-analysis.xlsx" and select the "Bike Sharing Demand Dataset" sheet.
  2. 02Place hour in Rows and total_rentals in Values summarized as an average.
  3. 03Add is_working_day as a filter or Columns field and label the 2011–2012 coverage.

What you can build

Finished output from this release

How does average hourly demand vary by season and working-day status?

How does average hourly demand vary by season and working-day status?

seasonworkingdayaverage_hourly_rentalstotal_rentals
1095.1137683
11119.4333665
20214.4287976
21205.7630613
30230.3312056
31238.5749073
View the checked SQL
SELECT season,
       workingday,
       ROUND(AVG(cnt), 1) AS average_hourly_rentals,
       SUM(cnt) AS total_rentals
FROM hour
GROUP BY season, workingday
ORDER BY season, workingday;

Daily demand report

Plot daily rentals and compare the patterns visible across the coverage period.

Hourly profile

Compare average rentals by hour, stating which days are included in the calculation.

Weather comparison

Compare recorded demand across the documented weather categories.

Time-based validation exercise

Use earlier observations for fitting and later observations for assessment.

Questions about this dataset

Is this current bike-sharing data?

No. It covers Capital Bikeshare activity from 2011 to 2012.

Should I combine the hourly and daily files?

Use either level for a given total. The files describe the same activity at different levels of detail, so adding their rental counts would double-count.

Source, license, and versions

Before you interpret the results

  • The source omits 165 zero-activity hours.
  • Weather values are normalized.
  • Counts cover Washington, D.C. in 2011-2012 and should not be generalized without validation.

Source, license, and version

Cite the version number when you share your work so anyone can rerun it on the same files.

Maintainer
UCI Machine Learning Repository; prepared formats by Analytics Engineering
License
CC BY 4.0
Version
1.0.1
Published
2026-11-23T06:28:53.133Z
View the original source →

Cite this dataset

Fanaee-T, H. (2013). Bike Sharing [Dataset]. UCI Machine Learning Repository. https://doi.org/10.24432/C5W894

Found an issue?

Send the dataset, version, and file you used, plus what you expected to see. A small example gets it fixed faster.

Report a dataset issue →

Keep learning

Compare hourly and seasonal demand while preserving UCI's original historical scope and variable definitions.

Practice exercises run in your browser on a smaller sample of this dataset.