'Finding Trend and Seasonality on Hourly Time Series Energy Data

enter image description here

Hello, I am new in statistics and I am trying to find trend and seasonality on the energy consumption dataset by using pandas. How can I able to find those with respect to hour. I tried decomposition = sm.tsa.seasonal_decompose(RTC_data['Electricity Usage (MWh)'], model='additive') but getting ValueError: You must specify a period or x must be a pandas object with a PeriodIndex or a DatetimeIndex with a freq not set to None



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source