block
expression_statement
string
string_start "\"\"\""
string_content "\n Class for resampling datetimelike data, a groupby-like "...
string_end "\"\"\""
expression_statement
assignment
identifier "_grouper"
: ":"
type
identifier "BinGrouper"
expression_statement
assignment
identifier "_timegrouper"
: ":"
type
identifier "TimeGrouper"
expression_statement
assignment
identifier "binner"
: ":"
type
binary_operator
binary_operator
identifier "DatetimeIndex"
| "|"
identifier "TimedeltaIndex"
| "|"
identifier "PeriodIndex"
comment "# depends on subclass"
expression_statement
assignment
identifier "exclusions"
: ":"
type
generic_type
identifier "frozenset"
type_parameter
[ "["
type
identifier "Hashable"
] "]"
= "="
call
identifier "frozenset"
argument_list
( "("
) ")"
comment "# for SelectionMixin compat"
expression_statement (+26 nodes collapsed)
comment "# to the groupby descriptor"
expression_statement (+37 nodes collapsed)
function_definition (+242 nodes collapsed)
decorated_definition (+112 nodes collapsed)
decorated_definition (+98 nodes collapsed)
decorated_definition (+68 nodes collapsed)
function_definition (+33 nodes collapsed)
function_definition
def "def"
identifier "_get_binner_for_time"
parameters
( "("
identifier "self"
) ")"
: ":"
block
raise_statement
raise "raise"
call
identifier "AbstractMethodError"
argument_list
( "("
identifier "self"
) ")"
decorated_definition
decorator
@ "@"
identifier "final"
function_definition
def "def"
identifier "_get_binner"
parameters
( "("
identifier "self"
) ")"
: ":"
block
expression_statement
string
string_start "\"\"\""
string_content "\n Create the BinGrouper, assume that self.set_grouper"...
string_end "\"\"\""
expression_statement
assignment
pattern_list
identifier "binner"
, ","
identifier "bins"
, ","
identifier "binlabels"
= "="
call
attribute
identifier "self"
. "."
identifier "_get_binner_for_time"
argument_list
( "("
) ")"
assert_statement
assert "assert"
comparison_operator
call
identifier "len"
argument_list
( "("
identifier "bins"
) ")"
== "=="
call
identifier "len"
argument_list
( "("
identifier "binlabels"
) ")"
expression_statement
assignment
identifier "bin_grouper"
= "="
call
identifier "BinGrouper"
argument_list
( "("
identifier "bins"
, ","
identifier "binlabels"
, ","
keyword_argument
identifier "indexer"
= "="
attribute
identifier "self"
. "."
identifier "_indexer"
) ")"
return_statement
return "return"
expression_list
identifier "binner"
, ","
identifier "bin_grouper"
decorated_definition (+65 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+108 nodes collapsed)
decorated_definition (+97 nodes collapsed)
expression_statement
assignment
identifier "agg"
= "="
identifier "aggregate"
expression_statement
assignment
identifier "apply"
= "="
identifier "aggregate"
decorated_definition (+61 nodes collapsed)
function_definition (+23 nodes collapsed)
function_definition (+35 nodes collapsed)
function_definition (+132 nodes collapsed)
function_definition (+252 nodes collapsed)
decorated_definition (+52 nodes collapsed)
function_definition (+191 nodes collapsed)
decorated_definition (+48 nodes collapsed)
decorated_definition (+48 nodes collapsed)
decorated_definition (+48 nodes collapsed)
decorated_definition (+432 nodes collapsed)
decorated_definition (+42 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+72 nodes collapsed)
decorated_definition (+72 nodes collapsed)
decorated_definition (+45 nodes collapsed)
decorated_definition (+46 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+59 nodes collapsed)
decorated_definition (+224 nodes collapsed)
decorated_definition (+32 nodes collapsed)
decorated_definition (+160 nodes collapsed)
decorated_definition (+160 nodes collapsed)
decorated_definition (+63 nodes collapsed)