I have a data frame.
date name start_time_bin skill set
2019-10-25 Joe 10am- 12am C,Python
2019-10-25 Mark 10am- 12am Java,Python
2019-10-25 Sara 12pm- 2pm Java,Python
2019-10-26 Jim 12pm- 2pm C,Python, scala
2019-10-26 Bob >=2pm < 4pm C,SQL
I'm trying to convert this dataframe into something like this using pivot.
Audit_date 10am- 12am 12pm- 2pm >=2pm < 4pm
2019-10-25 Joe Sara Nan
2019-10-25 Mark Nan Nan
2019-10-26 Nan Jim Bob
I tried using the following:
piv = new.pivot_table(index=['Audit_Date'], columns='start_time_bin',
values='name')
I'm getting error as No numeric types to aggregate
Is there any other way to do this?