# RCsvDs class with parallel

**URL:** <https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484>\
**Category:** Newbie\
**Created:** [March 11, 2024, 1:23pm UTC](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484 "2024-03-11T13:23:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hohshita](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Post date:** [March 11, 2024, 1:23pm UTC](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484/1 "2024-03-11T13:23:14Z")

</div>

Dear ROOT experts,

I’m trying to pass data from a csv file to rDataFrame using the RCsvDS class. When I declared ROOT::EnableImplicitMT() method, I found that the order of the data stored in the rDataFrame columns changed depending on the number of threads. I attached two figures, one is obtained when ROOT::DisableImplicitMT() method is activated (ON\_DisableImplicitMT.png), the other is when the method is commented out (OFF\_DisableImplicitMT.png). Those results were obtained executing a simple example (smpl.C).  
$ root -l smpl.C

- Should not the RCsvDS class use with the declaration of ROOT::EnableImplicitMT() method?
- Also, when we declare the method, we need to sort the rDataFrame columns?

Best regards,  
Ohshita

\_ROOT Version: ROOT 6.30/02  
\_Platform: AlmaLinux release 8.9  
\_Compiler: gcc 8.5.0

 ![ON_DisableImplicitMT](https://root-forum.cern.ch/uploads/default/original/3X/9/7/97fd84ce4146a879f07c6680f2901db785d285ed.png)  
 ![OFF_DisableImplicitMT](https://root-forum.cern.ch/uploads/default/original/3X/2/3/23683dcd06b73a1f11f3f2b3529ac436fb0a14a1.png)  
[smpl.C](https://root-forum.cern.ch/uploads/short-url/pIaY9j7EF0KEviVtk3DZhxvexWD.C) (615 Bytes)

* * *

---

<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 12, 2024, 9:49am UTC](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484/2 "2024-03-12T09:49:46Z")

</div>

I guess you should [sort the TGraph](https://root.cern/doc/master/classTGraph.html#a6192cff25c7ab28933c91f2869020cce) when you create it in parallel mode.

---

<div class="post-metadata">

**Author:** ![hohshita](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Post date:** [March 12, 2024, 11:53am UTC](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484/3 "2024-03-12T11:53:10Z")

</div>

Dear couet,

Thank you for your reply. The problem has been solved.

Best regards,  
Ohshita
