How do I read one "cell" of a fixed width column that is split over two lines? The data input is a fixed width table, like so;
ID Description QTY
1 Description split over 1
two lines
2 Description on one line 2
I'd like to have the data frame format the data as per below;
ID Description QTY
1 Description split over two lines 1
2 Description on one line 2
My current code is;
import pandas as pd
df = pd.read_fwf('test.txt', names = ['ID', 'Description', 'QTY'])
df
But this gives me;
ID Description QTY
1 Description split over 1
NaN two lines NaN
2 Description on one line 2
Any ideas?