# Dealing with missing values in RDataFrame(CSV)

**URL:** <https://root-forum.cern.ch/t/dealing-with-missing-values-in-rdataframe-csv/37362>\
**Category:** Newbie\
**Tags:** rdataframe\
**Created:** [December 29, 2019, 8:05am UTC](https://root-forum.cern.ch/t/dealing-with-missing-values-in-rdataframe-csv/37362 "2019-12-29T08:05:52Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [January 7, 2020, 10:44am UTC](https://root-forum.cern.ch/t/dealing-with-missing-values-in-rdataframe-csv/37362/8 "2020-01-07T10:44:50Z")

</div>

Hi,

Regarding the DOS format problem, please see my answer here:

> [@Plot of nested beans](https://root-forum.cern.ch/t/plot-of-nested-beans/35951/13):
>
> Hi, The issue is that the .txt file was generated in Windows. When reading from the file in Linux, std::getline returns a string ended in \r. That \r is parsed as part of the second column, and therefore the inferred type is string. You can convert your Windows file to unix format with e.g. dos2unix. Also, I noticed that the first row contains a 0 in the second column. Provided that you convert the file to unix format, and since it is the first row that is used to infer the types, the second c…

As for the RCsvDataSource, this is the relevant file in ROOT:

> <https://github.com/root-project/root/blob/master/tree/dataframe/src/RCsvDS.cxx>

Possibly it should be enough to add the support for the empty values in `ParseValue`

---

_[View the full topic](https://root-forum.cern.ch/t/dealing-with-missing-values-in-rdataframe-csv/37362)._
