I have some data in txt format with 38 columns which looks like this:
With the exception of the header row, most of the rows have missing values. I want to convert this table into an array/ dataframe/ excel. But it is not coming as it looks in table.
I tried using python
df = pandas.read_csv(filename, sep='\s+',names=colnames, header=None)
I am confused about what seperator to use.
The program should look for value after single space. If no value is present, fill it with nan. How to do that?
Thanks in advance!