Pandas tseries offsets FY5253Quarter property kwds in Python
The Pandas tseries offsets FY5253Quarter property kwds used to retrieve a dict of extra parameters for the offset. It returns a dictionary object that includes an extra parameters of an offset.
Syntax
 1 FY5253Quarter.kwds
kwds property
 1 import pandas as pd
 2 
 3 offset = pd.tseries.offsets.FY5253Quarter()
 4 res = offset.kwds
 5 print(f'The FY5253Quarter extra parameters : {res}')
 6 
 7 offset1 = pd.tseries.offsets.FY5253Quarter(weekday = 4)
 8 res1 = offset1.kwds
 9 print(f'The FY5253Quarter extra parameters : {res1}')
In the above example, a FY5253Quarter objects are created with and without parameters. A kwds property is access that returns an extra parameters of an offset. The result is assign to the variable that will be printed on console.
Output
 1 The FY5253Quarter extra parameters : 
 2 {'weekday': 0, 'startingMonth': 1,
 3  'qtr_with_extra_week': 1, 'variation': 'nearest'}
 4 
 5 The FY5253Quarter extra parameters : 
 6 {'weekday': 4, 'startingMonth': 1,
 7  'qtr_with_extra_week': 1, 'variation': 'nearest'}

Example 2

Example 2
 1 import pandas as pd
 2 
 3 offset = pd.tseries.offsets.FY5253Quarter(normalize = True)
 4 res = offset.kwds
 5 print(f'The FY5253Quarter extra parameters : {res}')
In the above example, a FY5253Quarter objects are created without unit frequency, weekday and normalize as true. A kwds property is access that returns an extra parameters of an offset.
Output
 1 The FY5253Quarter extra parameters : 
 2 { 'weekday': 0, 'startingMonth': 1, 
 3   'qtr_with_extra_week': 1, 'variation': 'nearest'}

Example 3

Example 3
 1 import pandas as pd
 2 
 3 offset1 = pd.tseries.offsets.FY5253Quarter(n = 3, weekday = 4, normalize = True)
 4 res1 = offset1.kwds
 5 print(f'The FY5253Quarter extra parameters : {res1}')
In the above example, a FY5253Quarter objects are created with unit frequency as 3, weekday as 4 and normalize as true. A kwds property is access that returns an extra parameters of an offset.
Example 3
 1 The FY5253Quarter extra parameters : 
 2 { 'weekday': 4, 'startingMonth': 1, 
 3   'qtr_with_extra_week': 1, 'variation': 'nearest'}
Privacy Policy
Terms of Service
Disclaimer
Contact us
About us