roy_stats
roy_stats

Reputation: 1

How do I make values in a column their own separate columns with the corresponding values?

I have the following dataset schema.

Type | Quarter | Revenue

How do I turn the Quarter column into different column names (such as Q2, Q3) and have the respective revenue values attached to it? I want it to look like this below

Type | Q2 Rev | Q3 Rev

Upvotes: 0

Views: 112

Answers (0)

Related Questions