I'm trying to read a dataset into a pandas dataframe. The dataset is currently in a .txt file, and it looks something like this:
name: hello_world
rating: 5
description: basic program
name: python
rating: 10
description: programming language
As you can see, the column names start each line, followed by the data. Different rows of the dataframe are separated by an extra line. Is there a simple way to read this type of file into pandas, or do I just have to do it manually?
Thanks!
Edit: Thanks everyone for the help. It seems that the answer is, yes, you have to do it manually. I've posted the way I did it manually below, though I'm sure there are other, more efficient methods.