Sep-06-2023, 02:32 PM
(This post was last modified: Sep-06-2023, 02:32 PM by deanhystad.)
The screenshot looked like tabs. That is another advantage of posting text over screenshots. I would have known the columns were separated by spaces, sometimes multiple spaces. Again, not a problem. Pandas if accommodating. Change the separator to a space, and skipinitialspace to take care of when there are multiple spaces between columns.
df = pd.read_csv(StringIO(gpib_string), sep=" ", skiprows=5, names=columns, skipinitialspace=True)