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.
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.
1 The MonthBegin extra parameters : {}
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.
1 The MonthBegin extra parameters : {}
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.
1 The MonthBegin extra parameters : {}
Related options for your search