I have data in the following format:
Record ID Para Tag
1 A x
1 A y
2 B x
2 B y
1 A z
I want to transform the data into the following format:
Record Para x_Tag y_Tag z_Tag
1 A 1 1 1
2 B 1 1 0
Need some guidance to do so in Pandas.
pivot_table
pivot_table
works nicely here, and should be fast:crosstab
This is
get_dummies