Datespine Groups
Parameters
Name
Type
Description
Is Optional
Example
ds = rasgo.get.dataset(74)
# Usage 1: Local datespines - will return a datespine per group with
# min/max values within the group
ds2 = ds.datespine_groups(
group_by=['PRODUCTKEY'],
date_col='ORDERDATE',
group_bounds='local',
interval_type='day',
start_timestamp='2010-12-29',
end_timestamp='2014-01-28'
)
ds2.preview()
# Usage 2: Global datespines - will return a datespine per group with
# min/max values set to the global min/max
ds2 = ds.datespine_groups(
group_by=['PRODUCTKEY'],
date_col='ORDERDATE',
group_bounds='global',
interval_type='day',
start_timestamp='2010-12-29',
end_timestamp='2014-01-28'
)
ds2.preview()
Source Code
Last updated