# Data handling using rDataFrame for Tree branches of Char\_t type data

**URL:** <https://root-forum.cern.ch/t/data-handling-using-rdataframe-for-tree-branches-of-char-t-type-data/63983>\
**Category:** Newbie\
**Created:** [August 6, 2025, 7:23am UTC](https://root-forum.cern.ch/t/data-handling-using-rdataframe-for-tree-branches-of-char-t-type-data/63983 "2025-08-06T07:23:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 6, 2025, 12:00pm UTC](https://root-forum.cern.ch/t/data-handling-using-rdataframe-for-tree-branches-of-char-t-type-data/63983/3 "2025-08-06T12:00:56Z")

</div>

Maybe Enrico’s solution [here](https://root-forum.cern.ch/t/rdataframe-built-from-string-branches/49132) will help. Basically, redefine the (currently `RVec<char>`) column (or define a new one) as string; something like

```auto
  auto df_with_parsed_branch = rdf.Define("parsed_particle_name", "std::string(particle_name.data(), particle_name.size())");

```

and use the strings as needed.

---

_[View the full topic](https://root-forum.cern.ch/t/data-handling-using-rdataframe-for-tree-branches-of-char-t-type-data/63983)._
