Hello!
I am working with a dataset that contains information about a set of electric vehicle charging stations, where each observation represents a specific charging station. The name of the charging station is contained in a variable called
. This includes a variable called
which contains all of the customer reviews for a specific station (delimited by }{), and another variable called
that has the number of customer reviews.
I'm trying to make a new file where each observation represents one customer review (with the reviews being stored in a new variable named
, and with another variable,
that has the name of the station corresponding with the customer review. So, for example, if the original data set had 100 observation (one per station) with 5 reviews per station, the new file should have 500 observations (one per review).
How can I do this? I would include some code I have tried but I have no idea how to start.
Thanks!
I am working with a dataset that contains information about a set of electric vehicle charging stations, where each observation represents a specific charging station. The name of the charging station is contained in a variable called
Code:
station_name
Code:
review_text
Code:
num_reviews
I'm trying to make a new file where each observation represents one customer review (with the reviews being stored in a new variable named
Code:
customer_review
Code:
station_id
How can I do this? I would include some code I have tried but I have no idea how to start.
Thanks!
Comment