This repository contains a Jupyter Notebook that performs exploratory data analysis (EDA) on an Uber rides dataset. The notebook explores trip volume, distance, top pickup/dropoff locations, user insights, and basic data quality checks.
- UberDataAnalysis.ipynb: Main analysis notebook.
- UberDataset.csv: Primary dataset for the exploratory analysis.
- UberDataset.xlsx: Alternative format used for specific predictive analysis tasks.
- Expected filename:
UberDataset.csv(placed in the same folder as the notebook). - The notebook uses
kagglehub.dataset_download("bhanupratapbiswas/uber-data-analysis")to download the data ifkagglehubis available. If you do not wish to usekagglehub, download the dataset manually from the source and placeUberDataset.csvalongside the notebook.
- Python 3.8 or newer
- Jupyter (Notebook or JupyterLab)
- Required Python packages:
pandasnumpymatplotlibseabornkagglehub(optional — only for automated data download)
Install dependencies with pip:
pip install pandas numpy matplotlib seaborn
# Optional: only if you plan to use kagglehub in the notebook
pip install kagglehub-
Ensure
UberDataset.csvis in the same folder asUberDataAnalysis.ipynb, or update thefile_pathvariable in the notebook to point to your dataset location. -
Start Jupyter and open the notebook:
jupyter notebook UberDataAnalysis.ipynb- Run the notebook cells in order. The notebook performs:
- Data loading and structure inspection (
df.info()) - Missing value and duplicate checks
- Box plots for numeric columns to identify outliers
- Date/time conversions for
START_DATEandEND_DATE - Volume analysis (daily, hourly, and day-of-week trends)
- Visualization of top pickup and dropoff locations
- Trip distance metrics for the
MILEScolumn - Customer/user insights based on trip purpose and categories
- Data loading and structure inspection (
-
Automatic Download: If you don't have
kagglehub, comment out the download lines in the first cell and set thepathvariable to the local folder containingUberDataset.csv. -
Column Names: The notebook expects columns named
START_DATE,END_DATE, andMILES. If your specific version of the dataset uses different naming (e.g., lowercase or underscores), update the preprocessing section of the notebook accordingly. -
Visualization: Ensure that variables such as
pickup_col,dropoff_col, anddaily_ridesare correctly mapped to your dataframe columns before running the plotting cells.
- Dataset Source: bhanupratapbiswas/uber-data-analysis (Kaggle).
- Please check the original dataset page for specific license and attribution requirements.
For changes or questions, please update the notebook or open an issue if using version control.