Pandas tseries offsets MonthBegin property kwds in Python
The Pandas tseries offsets MonthBegin property kwds used to retrieve a dict of extra parameters for the offset. It returns dictionary that includes extra parameters of the offset.
Syntax
 1 MonthBegin.kwds
kwds property
 1 import pandas as pd
 2 
 3 offset = pd.offsets.MonthBegin(n = 4)
 4 res = offset.kwds
 5 print(f'The MonthBegin extra parameters : {res}')
In the above example, a MonthBegin object is created by passing a n frequency unit. A kwds property is access that returns a dictionary that includes extra parameters if any. The result is assign to the variable that will be printed on console.
Output
 1 The MonthBegin extra parameters : {}

Example 2

Example 2
 1 import pandas as pd
 2 
 3 offset = pd.offsets.MonthBegin()
 4 res = offset.kwds
 5 print(f'The MonthBegin extra parameters : {res}')
In the above example, a MonthBegin object is created without frequency. A kwds property is access that returns a dictionary that includes extra parameters if any.
Output
 1 The MonthBegin extra parameters : {}

Example 3

Example 3
 1 import pandas as pd
 2 
 3 offset1 = pd.offsets.MonthBegin()
 4 res1 = offset1.kwds
 5 print(f'The MonthBegin extra parameters : {res1}')
In the above example, a MonthBegin object is created without frequency. A kwds property is access that returns a dictionary that includes extra parameters if any.
Output
 1 The MonthBegin extra parameters : {}
Privacy Policy
Terms of Service
Disclaimer
Contact us
About us