'How to convert Period string to actual Period type
I have a column of data such as '1971q1', '1972q2', etc. (year followed by quarter) When I do:
print(type(df.Quarterly))
the answer is Series
What I need is to "cast"/convert this column to a genuine pd.Period type so I can do simple time algebra with it. Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
