Skip to content
Advertisement

Trying to get ‘QS’ frequency in pandas for a datetime64[ns] gives attribute error

I am working with an external data source and I am trying to get Quaterstart(QS) frequency for a particular data field. I am providing a dummy data and code below.

JavaScript

I am gettinng the following error when I run this

JavaScript

Can someone please help me understand what’s happening here? ps: The data given here is dummy data and not the original data

Advertisement

Answer

Your syntax is incorrect, try like this instead:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement