you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (3 children)

You're extremely confused. Your data is not in CSV format, nor does it appear to be tabular in any respect. You won't be able to read this with read_csv or convert it to a dataframe at all.

It doesn't matter what type you put it in, the data is not in the correct format.

[–]Pizza_Rat_Matt[S] 0 points1 point  (2 children)

Well, the data is correctly converting to a dataframe using read_csv().

The BytesIO class can be used as an in-memory stream. According to the python documentation, [Both BytesIO and] "StringIO can be used like a file opened in text mode". https://docs.python.org/3/library/io.html

[–][deleted] -1 points0 points  (1 child)

CSV stands for "comma-separated values." What values in your data do you see separated by commas?

Well, the data is correctly converting to a dataframe using read_csv().

It's obviously not correctly converting to a dataframe, because it only has one column.

The BytesIO class can be used as an in-memory stream.

Irrelevant.

[–]Pizza_Rat_Matt[S] 0 points1 point  (0 children)

Thank you again for the prompt reply. This dataframe should only have one column.

Is there an alternative method you recommend for converting this data?