0

Whilst importing a .tsv file using panda.read_csv(file_name.tsv, sep = "\t") I noticed that a few entries were a lot longer than others. Upon further investigation, I noticed long entries that failed to be represented as new rows because of the "\r\n" not being recognized as a new row.

enter image description here

enter image description here

enter image description here

enter image description here

I have attached samples, and after trying to replace the string with no success, was hoping to find a solution.

lm231
  • 29
  • 6
  • 3
    Please provide a reproducible example, images are not. – mozway Apr 05 '23 at 11:29
  • [Please do not upload images of code/data/errors.](//meta.stackoverflow.com/q/285551) – buran Apr 05 '23 at 11:30
  • Also see [this Q/A](https://stackoverflow.com/questions/57894697/how-to-convert-string-that-uses-r-n-as-line-breaks-to-pandas-dataframe) – mozway Apr 05 '23 at 11:31

0 Answers0