# Possibility to read ROOT files into Dask DataFrames in Python

**URL:** <https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180>\
**Category:** Newbie\
**Tags:** python\
**Created:** [March 14, 2022, 4:57pm UTC](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180 "2022-03-14T16:57:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janhein](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/258eb7/32.png) [@janhein](https://root-forum.cern.ch/u/janhein)\
**Post date:** [March 14, 2022, 4:57pm UTC](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180/1 "2022-03-14T16:57:27Z")

</div>

Hello,

I was wondering whether there is any interface, which gives you the possibility to read ROOT files directly into Dask DataFrames using Python.  
I am aware of the functionality to read ROOT files and obtain a Pandas DataFrame. However this means, that you are usually constrained by the amount of RAM in your computer.  
I am also aware of uproot, which seems to have had a Dask backend. But unfortunately this seems to have been removed with release 4.0.0rc1 of uproot.  
Is there any recommendation on how something like this could be done?

Thank you for any tips

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 15, 2022, 7:21am UTC](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180/2 "2022-03-15T07:21:31Z")

</div>

I think @eguiraud can help you.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 15, 2022, 9:09am UTC](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180/3 "2022-03-15T09:09:25Z")

</div>

Hi @janhein ,  
and welcome to the ROOT forum!

Currently, ROOT does not offer direct integration with dask dataframes. A possible solution is to do perform a first selection of events and columns using [RDataFrame](https://root.cern/doc/master/classROOT_1_1RDataFrame.html), then export to NumPy arrays that subset of the data (see e.g. [ROOT: tutorials/dataframe/df026\_AsNumpyArrays.py File Reference](https://root.cern/doc/master/df026__AsNumpyArrays_8py.html)) and use dask from there.

Cheers,  
Enrico
