I did some pivoting and got column headers formatted as datetime objects, more precisely as periods, looking like this Period('2000Q1', 'Q-DEC'). Now how could I convert this period back into a string i.e. for the above just '2000Q1'?
realized this is a possible duplication of: Python/Pandas - Convert type from pandas period to string
Cheers