Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get quarter year date in pandas

import datetime as dt
import pandas as pd

quarter = pd.Timestamp(dt.date(2016, 2, 29)).quarter
assert quarter == 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #quarter #year #date #pandas
ADD COMMENT
Topic
Name
8+8 =