I have a Time-Series Data Frame in the below sample:
Date Ticker Price
2018-01-01 AAA 100
2018-01-01 BBB 200
2018-01-01 CCC 1000
2018-01-01 DDD 3000
2018-01-02 BBB 201
2018-01-02 CCC 1001
I want to obtain Unique values of "Ticker" column and convert the unique tickers into the dataframe columns. My data frame is supposed to look like the below
Date AAA BBB CCC DDD
2018-01-01 100 200 1000 3000
2018-01-02 NaN 201 1001 NaN
I am a bit new to Python, and yet to find a way to get around it. Could anyone suggest an efficient solution because I am dealing about 1M such rows at a time and need a solution that works faster was well. Thanx in adv.