I have the string looks like this
"""PID TTY TIME CMD
1 ? 00:00:01 systemd
2 ? 00:00:00 kthreadd
3 ? 00:00:00 rcu_gp
4 ? 00:00:00 rcu_par_gp"""
When I try to access the data["PID"] it will give me 1,2,3,4 and so for the other headers.
To overcome that I am trying to using pandas and StringIO to convert it to a dataframe. But it will be better if the logic is python related and not with pandas
Select the correct answer from above options