vaex out of core dataframes for python
play

Vaex: Out of core dataframes for Python Maarten A. Breddels & - PowerPoint PPT Presentation

Vaex: Out of core dataframes for Python Maarten A. Breddels & Jovan Veljanoski Article: A&A 618, 2017 / Arxiv 1801.02638 PyParis - Nov 13/2018 Maarten Breddels Ex: astronomer (working on software for big data and visualization: vaex)


  1. Vaex: Out of core dataframes for Python Maarten A. Breddels & Jovan Veljanoski Article: A&A 618, 2017 / Arxiv 1801.02638 PyParis - Nov 13/2018

  2. Maarten Breddels • Ex: astronomer (working on software for big data and visualization: vaex)

  3. Maarten Breddels • Ex: astronomer (working on software for big data and visualization: vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter

  4. Maarten Breddels • Ex: astronomer (working on software for big data and visualization: vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Core Jupyter-Widgets developer

  5. Maarten Breddels • Ex: astronomer (working on software for big data and visualization: vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Core Jupyter-Widgets developer • Authors of vaex and ipyvolume

  6. Maarten Breddels • Ex: astronomer (working on software for big data and visualization: vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Core Jupyter-Widgets developer • Authors of vaex and ipyvolume I live on the internet at: @maartenbreddels maartenbreddels@gmail.com github.com/maartenbreddels www.maartenbreddels.com

  7. Maarten Breddels Jovan Veljanoski • Ex: astronomer (working on software for big data and visualization: vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Core Jupyter-Widgets developer • Authors of vaex and ipyvolume I live on the internet at: @maartenbreddels maartenbreddels@gmail.com github.com/maartenbreddels www.maartenbreddels.com

  8. Maarten Breddels Jovan Veljanoski • Ex: astronomer (working on software for big data and visualization: vaex) • Ex- astronomer (big influence on vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Core Jupyter-Widgets developer • Authors of vaex and ipyvolume I live on the internet at: @maartenbreddels maartenbreddels@gmail.com github.com/maartenbreddels www.maartenbreddels.com

  9. Maarten Breddels Jovan Veljanoski • Ex: astronomer (working on software for big data and visualization: vaex) • Ex- astronomer (big influence on vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Data scientists at Xebia Labs • Core Jupyter-Widgets developer • Authors of vaex and ipyvolume I live on the internet at: @maartenbreddels maartenbreddels@gmail.com github.com/maartenbreddels www.maartenbreddels.com

  10. Maarten Breddels Jovan Veljanoski • Ex: astronomer (working on software for big data and visualization: vaex) • Ex- astronomer (big influence on vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Data scientists at Xebia Labs • Core Jupyter-Widgets developer • vaex coauthor • Authors of vaex and ipyvolume I live on the internet at: @maartenbreddels maartenbreddels@gmail.com github.com/maartenbreddels www.maartenbreddels.com

  11. Maarten Breddels Jovan Veljanoski • Ex: astronomer (working on software for big data and visualization: vaex) • Ex- astronomer (big influence on vaex) • Now: Freelancer / consultant / data scientist for Python / Jupyter • Data scientists at Xebia Labs • Core Jupyter-Widgets developer • vaex coauthor • Authors of vaex and ipyvolume I live on the internet at: I live on the internet at: @maartenbreddels @N147185 maartenbreddels@gmail.com jovan.veljanoski@gmail.com github.com/maartenbreddels github.com/JovanVeljanoski www.maartenbreddels.com https:/ /www.linkedin.com/in/jovanvel/

  12. Agenda • Why does vaex exist? • What is vaex? • Why is it so fast? • Demos • Summary

  13. Motivation: Gaia

  14. Motivation: Gaia • > 1 billion stars • Sky positions • Distance • Motions • And many more • Errors / Correlations

  15. Motivation: Gaia • > 1 billion stars • Sky positions • Distance • Motions • And many more • Errors / Correlations • Latest data release • 1.7 billion rows • 1.2 TB • 94 columns/features

  16. scatter

  17. scatter density

  18. • How fast can it be done?

  19. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes)

  20. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes) • Memory bandwidth: 10-50 GiB/s: ~1 second

  21. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes) • Memory bandwidth: 10-50 GiB/s: ~1 second • CPU: 3 Ghz (but multicore, say 4-8): 12-24 cycles/second

  22. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes) • Memory bandwidth: 10-50 GiB/s: ~1 second • CPU: 3 Ghz (but multicore, say 4-8): 12-24 cycles/second • Few cycles per row/object, simple algorithm

  23. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes) • Memory bandwidth: 10-50 GiB/s: ~1 second • CPU: 3 Ghz (but multicore, say 4-8): 12-24 cycles/second • Few cycles per row/object, simple algorithm • Histograms/Density/Statistics grids

  24. • How fast can it be done? • 10 9 * 2 * 8 bytes = 15 GiB (double is 8 bytes) • Memory bandwidth: 10-50 GiB/s: ~1 second • CPU: 3 Ghz (but multicore, say 4-8): 12-24 cycles/second • Few cycles per row/object, simple algorithm • Histograms/Density/Statistics grids

  25. 1d 2d

  26. 1d 2d 3d

  27. 0d 330,000 rows 1d 2d 3d

  28. 0d 330,000 rows 1d 2d 3d

  29. 0d 330,000 rows 1d 2d 3d

  30. 0d 330,000 rows mean: -0.083 1d 2d 3d

  31. 0d 330,000 rows mean: -0.083 1d 2d 3d

  32. vaex • ~1 second

  33. vaex • Python library (conda/pip installable) • ~1 second

  34. vaex • Python library (conda/pip installable) • Pandas-like (familiar API) • Out-of-core, expression system • ~1 second • ApacheArrow / hdf5 + memory mapping

  35. vaex • Python library (conda/pip installable) • Pandas-like (familiar API) • Out-of-core, expression system • ~1 second • ApacheArrow / hdf5 + memory mapping • Strong focus on statistics on N-d grids (count/mean/max/std/…)

  36. vaex • Python library (conda/pip installable) • Pandas-like (familiar API) • Out-of-core, expression system • ~1 second • ApacheArrow / hdf5 + memory mapping • Strong focus on statistics on N-d grids (count/mean/max/std/…) • >1 billion rows / sec on a desktop (quad core 3Gz) • >50x faster than scipy.stats.binned_statistic_2d

  37. vaex • Python library (conda/pip installable) • Pandas-like (familiar API) • Out-of-core, expression system • ~1 second • ApacheArrow / hdf5 + memory mapping • Strong focus on statistics on N-d grids (count/mean/max/std/…) • >1 billion rows / sec on a desktop (quad core 3Gz) • >50x faster than scipy.stats.binned_statistic_2d • Does visualisation / matplotlib / bqplot / ipyvolume / ipyleaflet

  38. vaex • Python library (conda/pip installable) • Pandas-like (familiar API) • Out-of-core, expression system • ~1 second • ApacheArrow / hdf5 + memory mapping • Strong focus on statistics on N-d grids (count/mean/max/std/…) • >1 billion rows / sec on a desktop (quad core 3Gz) • >50x faster than scipy.stats.binned_statistic_2d • Does visualisation / matplotlib / bqplot / ipyvolume / ipyleaflet • More • Machine learning (Boosted Trees, K-means, PCA, ..) • Distributed computing (>10 10 rows)

  39. What kind of data?

  40. What kind of data?

  41. What kind of data?

  42. What kind of data?

  43. “Never do a live demo” -Many people Demo notebooks at: https://github.com/maartenbreddels/talk-pyparis-2018

  44. Takeaway

  45. Takeaway • Next generation data frame library (vaex?)

  46. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points

  47. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points • Large datasets should be memory mapped: Apache Arrow / hdf5

  48. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points • Large datasets should be memory mapped: Apache Arrow / hdf5 • Should use expressions

  49. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points • Large datasets should be memory mapped: Apache Arrow / hdf5 • Should use expressions • No memory wasted

  50. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points • Large datasets should be memory mapped: Apache Arrow / hdf5 • Should use expressions • No memory wasted • No information lost: JIT/derivatives

  51. Takeaway • Next generation data frame library (vaex?) • Large datasets should be explored with statistics, not individual points • Large datasets should be memory mapped: Apache Arrow / hdf5 • Should use expressions • No memory wasted • No information lost: JIT/derivatives • ML pipelines are a byproduct

  52. • vaex • https://vaex.io • https://github.com/maartenbreddels/vaex • pip install —pre vaex • conda install -c conda-forge vaex • https://github.com/maartenbreddels/talk-pyparis-2018 • maartenbreddels@gmail.com • jovan.veljanoski@gmail.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend