I am having a dataframe that contains 5 columns while doing data cleaning process i got a problem caused by the carriage return from the text file as shown in the exp below.
Input :
001|Baker St.
London|3|4|7
002|Penny Lane
Liverpool|88|5|7
Output:
001|Baker St. London|3|4|7
002|Penny Lane Liverpool|88|5|7
Any suggestions are welcome.
\rwhile newline is\n, so replacing all\rwith nothing should work.