A Streamlit demo to interactively visualize Uber pickups in New York City

Overview

Open in Streamlit

Streamlit Demo: Uber Pickups in New York City

A Streamlit demo written in pure Python to interactively visualize Uber pickups in New York City.

Final App Animation

View the live app

Check out the live app at share.streamlit.io/streamlit/demo-uber-nyc-pickups. This demo is hosted with Streamlit sharing - the best way to deploy, manage, and share your Streamlit apps. Get an invite at streamlit.io/sharing.

Run this demo locally

pip install --upgrade streamlit
streamlit run https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streamlit_app.py

Questions? Comments?

Please ask in the Streamlit community.

Comments
  • Over resource limits on Streamlit Cloud

    Over resource limits on Streamlit Cloud

    opened by alex180500 1
  • Over resource limits on Streamlit Cloud

    Over resource limits on Streamlit Cloud

    opened by YulianaPoliakova 1
  • map not drawing

    map not drawing

    Hi,

    I am not seeing the map being drawn.

    I am running Ubuntu 18. I tried to run the demo on firefox as well as Chrome.

    I've attached an image of what I see.

    This is my environment:

    packages in environment at /home/graham/anaconda3/envs/streamlit:

    Name Version Build Channel

    _libgcc_mutex 0.1 main
    altair 4.1.0 pypi_0 pypi argon2-cffi 20.1.0 pypi_0 pypi astor 0.8.1 pypi_0 pypi attrs 19.3.0 pypi_0 pypi backcall 0.2.0 pypi_0 pypi base58 2.0.1 pypi_0 pypi blas 1.0 mkl
    bleach 3.1.5 pypi_0 pypi blinker 1.4 pypi_0 pypi boto3 1.14.41 pypi_0 pypi botocore 1.17.41 pypi_0 pypi ca-certificates 2020.6.24 0
    cachetools 4.1.1 pypi_0 pypi certifi 2020.6.20 py38_0
    cffi 1.14.1 pypi_0 pypi chardet 3.0.4 pypi_0 pypi click 7.1.2 pypi_0 pypi decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi docutils 0.15.2 pypi_0 pypi entrypoints 0.3 pypi_0 pypi enum-compat 0.0.3 pypi_0 pypi idna 2.10 pypi_0 pypi intel-openmp 2020.1 217
    ipykernel 5.3.4 pypi_0 pypi ipython 7.17.0 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 7.5.1 pypi_0 pypi jedi 0.17.2 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi jmespath 0.10.0 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.6 pypi_0 pypi jupyter-core 4.6.3 pypi_0 pypi ld_impl_linux-64 2.33.1 h53a641e_7
    libedit 3.1.20191231 h14c3975_1
    libffi 3.3 he6710b0_2
    libgcc-ng 9.1.0 hdf63c60_0
    libstdcxx-ng 9.1.0 hdf63c60_0
    markupsafe 1.1.1 pypi_0 pypi mistune 0.8.4 pypi_0 pypi mkl 2020.1 217
    mkl-service 2.3.0 py38he904b0f_0
    mkl_fft 1.1.0 py38h23d657b_0
    mkl_random 1.1.1 py38h0573a6f_0
    nbconvert 5.6.1 pypi_0 pypi nbformat 5.0.7 pypi_0 pypi ncurses 6.2 he6710b0_1
    notebook 6.1.3 pypi_0 pypi numpy 1.19.1 py38hbc911f0_0
    numpy-base 1.19.1 py38hfa32c7d_0
    openssl 1.1.1g h7b6447c_0
    packaging 20.4 pypi_0 pypi pandas 1.1.0 py38he6710b0_0
    pandocfilters 1.4.2 pypi_0 pypi parso 0.7.1 pypi_0 pypi pathtools 0.1.2 pypi_0 pypi pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 7.2.0 pypi_0 pypi pip 20.2.2 py38_0
    prometheus-client 0.8.0 pypi_0 pypi prompt-toolkit 3.0.6 pypi_0 pypi protobuf 3.12.4 pypi_0 pypi ptyprocess 0.6.0 pypi_0 pypi pyarrow 1.0.0 pypi_0 pypi pycparser 2.20 pypi_0 pypi pydeck 0.4.1 pypi_0 pypi pygments 2.6.1 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pyrsistent 0.16.0 pypi_0 pypi python 3.8.5 hcff3b4d_0
    python-dateutil 2.8.1 py_0
    pytz 2020.1 py_0
    pyzmq 19.0.2 pypi_0 pypi readline 8.0 h7b6447c_0
    requests 2.24.0 pypi_0 pypi s3transfer 0.3.3 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 49.2.1 py38_0
    six 1.15.0 py_0
    sqlite 3.32.3 h62c20be_0
    streamlit 0.65.0 pypi_0 pypi terminado 0.8.3 pypi_0 pypi testpath 0.4.4 pypi_0 pypi tk 8.6.10 hbc83047_0
    toml 0.10.1 pypi_0 pypi toolz 0.10.0 pypi_0 pypi tornado 6.0.4 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi tzlocal 2.1 pypi_0 pypi urllib3 1.25.10 pypi_0 pypi validators 0.17.1 pypi_0 pypi watchdog 0.10.3 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi wheel 0.34.2 py38_0
    widgetsnbextension 3.5.1 pypi_0 pypi xz 5.2.5 h7b6447c_0
    zlib 1.2.11 h7b6447c_3

    image

    opened by G-Webber 1
  • Bump protobuf from 3.19.3 to 3.19.5

    Bump protobuf from 3.19.3 to 3.19.5

    Bumps protobuf from 3.19.3 to 3.19.5.

    Release notes

    Sourced from protobuf's releases.

    Protocol Buffers v3.19.5

    C++

    Protocol Buffers v3.19.4

    Python

    • Make libprotobuf symbols local on OSX to fix issue #9395 (#9435)

    Ruby

    • Fixed a data loss bug that could occur when the number of optional fields in a message is an exact multiple of 32. (#9440).

    PHP

    • Fixed a data loss bug that could occur when the number of optional fields in a message is an exact multiple of 32. (#9440).
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Bump streamlit from 1.8.1 to 1.11.1

    Bump streamlit from 1.8.1 to 1.11.1

    Bumps streamlit from 1.8.1 to 1.11.1.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Move computation into functions

    Move computation into functions

    App seems to have a slow memory leak, presumably from re-using data over and over and Python losing track of the references. Move intermediate steps into functions and cache, so that at the limit, only the cached versions of data and hourly subsets exist. Also cleans up code from "analytics style" to a more production style...column names are known for certain, data types known, don't have to reprocess upon loading.

    opened by randyzwitch 0
  • Over resource limits on Streamlit Cloud

    Over resource limits on Streamlit Cloud

    opened by barakplasma 0
  • Bump streamlit version in requirements.txt

    Bump streamlit version in requirements.txt

    PR #7 was merged without us realizing that removing the beta_ prefix from set_page_config wasn't compatible with the version of streamlit that the demo app is pinned to in requirements.txt (st.set_page_config was still in beta in version 0.69).

    This PR bumps the version number up to the most recent version, which is probably preferable to reverting #7 since it makes the app work again in Streamlit sharing while also making it compatible with more recent versions of streamlit that people may be using when they run the app locally.

    I tested this locally by running the app with both version 0.69 and 0.81 and couldn't see any difference between the two.

    opened by vdonato 0
  • Is this demo broken for the initial instructions?

    Is this demo broken for the initial instructions?

    1. execute command from docs: https://github.com/streamlit/demo-uber-nyc-pickups#run-this-demo-locally
    2. I noticed an error saying the "uber...gz" file was not found
    3. notice the source assumes local path (colocated in repo): https://github.com/streamlit/demo-uber-nyc-pickups/blob/main/streamlit_app.py#L30
    4. notice "streamlit run" only works for self-contained remote scripts: https://github.com/streamlit/streamlit/blob/develop/lib/streamlit/web/cli.py#L169

    Did i miss some instructions or misunderstand how something is expected to work?

    opened by akshaya-a 0
  • Get information from the map

    Get information from the map

    Hello, I was looking at your application and it is very interesting, I was wondering if there is a way to obtain results from the map, for example, obtain the height and coordinates of each hexagon and more values that are present in the dataset. In other words, pass the pointer over a hexagonal bar and display these data. Thanks.

    opened by fmafelipe 0
Owner
Streamlit
The fastest way to build custom ML tools
Streamlit
Visualize classified time series data with interactive Sankey plots in Google Earth Engine

sankee Visualize changes in classified time series data with interactive Sankey plots in Google Earth Engine Contents Description Installation Using P

Aaron Zuspan 76 Dec 15, 2022
Interactive Web App with Streamlit and Scikit-learn that applies different Classification algorithms to popular datasets

Interactive Web App with Streamlit and Scikit-learn that applies different Classification algorithms to popular datasets Datasets Used: Iris dataset,

Samrat Mitra 2 Nov 18, 2021
A machine learning web application for binary classification using streamlit

Machine Learning web App This is a machine learning web application for binary classification using streamlit options this application contains 3 clas

abdelhak mokri 1 Dec 20, 2021
#30DaysOfStreamlit is a 30-day social challenge for you to build and deploy Streamlit apps.

30 Days Of Streamlit ?? This is the official repo of #30DaysOfStreamlit — a 30-day social challenge for you to learn, build and deploy Streamlit apps.

Streamlit 53 Jan 2, 2023
A collection of interactive machine-learning experiments: 🏋️models training + 🎨models demo

?? Interactive Machine Learning experiments: ??️models training + ??models demo

Oleksii Trekhleb 1.4k Jan 6, 2023
learn python in 100 days, a simple step could be follow from beginner to master of every aspect of python programming and project also include side project which you can use as demo project for your personal portfolio

learn python in 100 days, a simple step could be follow from beginner to master of every aspect of python programming and project also include side project which you can use as demo project for your personal portfolio

BDFD 6 Nov 5, 2022
A demo project to elaborate how Machine Learn Models are deployed on production using Flask API

This is a salary prediction website developed with the help of machine learning, this makes prediction of salary on basis of few parameters like interview score, experience test score.

null 1 Feb 10, 2022
This repository has datasets containing information of Uber pickups in NYC from April 2014 to September 2014 and January to June 2015. data Analysis , virtualization and some insights are gathered here

uber-pickups-analysis Data Source: https://www.kaggle.com/fivethirtyeight/uber-pickups-in-new-york-city Information about data set The dataset contain

B DEVA DEEKSHITH 1 Nov 3, 2021
Streamlit-template - A streamlit app template based on streamlit-option-menu

streamlit-template A streamlit app template for geospatial applications based on

Qiusheng Wu 41 Dec 10, 2022
NLP topic mdel LDA - Gathered from New York Times website

NLP topic mdel LDA - Gathered from New York Times website

null 1 Oct 14, 2021
Using machine learning to predict and analyze high and low reader engagement for New York Times articles posted to Facebook.

How The New York Times can increase Engagement on Facebook Using machine learning to understand characteristics of news content that garners "high" Fa

Jessica Miles 0 Sep 16, 2021
New York Times Front Page Downloader.

TIMETRAVELER New York Times Front Page Downloader. Usage python3 timetraveler.py All data will be saved at ~/timetraveler/ Goals To keep a historica

Daeshon Jones 0 Oct 31, 2021
Uses MIT/MEDSL, New York Times, and US Census datasources to analyze per-county COVID-19 deaths.

Covid County Executive summary Setup Install miniconda, then in the command line, run conda create -n covid-county conda activate covid-county conda i

Ahmed Fasih 1 Dec 22, 2021
Causal Inference and Machine Learning in Practice with EconML and CausalML: Industrial Use Cases at Microsoft, TripAdvisor, Uber

Causal Inference and Machine Learning in Practice with EconML and CausalML: Industrial Use Cases at Microsoft, TripAdvisor, Uber

EconML/CausalML KDD 2021 Tutorial 124 Dec 28, 2022
Distribution Analyser is a Web App that allows you to interactively explore continuous distributions from SciPy and fit distribution(s) to your data.

Distribution Analyser Distribution Analyser is a Web App that allows you to interactively explore continuous distributions from SciPy and fit distribu

Robert Dzudzar 46 Nov 8, 2022
Design your own matplotlib stylefile interactively

Tired of playing with font sizes and other matplotlib parameters every time you start a new project or write a new plotting function? Want all you plots have the same style? Use matplotlib configuration files!

yobi byte 207 Dec 8, 2022
Magma is a NeoVim plugin for running code interactively with Jupyter.

Magma Magma is a NeoVim plugin for running code interactively with Jupyter. Requirements NeoVim 0.5+ Python 3.8+ Required Python packages: pynvim (for

Daniel Csillag 372 Dec 26, 2022
CLabel is a terminal-based cluster labeling tool that allows you to explore text data interactively and label clusters based on reviewing that data.

CLabel is a terminal-based cluster labeling tool that allows you to explore text data interactively and label clusters based on reviewing that

Peter Baumgartner 29 Aug 9, 2022
A simple Streamlit Component to compare images in Streamlit apps. It integrates Knightlab's JuxtaposeJS

streamlit-image-juxtapose A simple Streamlit Component to compare images in Streamlit apps using Knightlab's JuxtaposeJS. The images are saved to the

Robin 30 Dec 31, 2022
OCR Streamlit App is used to extract text from images using python's easyocr, pytorch and streamlit packages

OCR-Streamlit-App OCR Streamlit App is used to extract text from images using python's easyocr, pytorch and streamlit packages OCR app gets an image a

Siva Prakash 5 Apr 5, 2022