Detail: IndexHierarchyGO: Display#

Overview: IndexHierarchyGO: Display

IndexHierarchyGO.interface#

A Frame documenting the interface of this class.

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> ih
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>
>>> ih.interface
<Frame>
<Index>                              cls_name         group                doc                  <<U18>
<Index: signature>
__init__(indices, /, *, indexers, n… IndexHierarchyGO Constructor          Initializer. Args: …
from_difference(*others)             IndexHierarchyGO Constructor          Construct a new Ind…
from_index_items(items, /, *, index… IndexHierarchyGO Constructor          Given an iterable o…
from_intersection(*others)           IndexHierarchyGO Constructor          Construct a new Ind…
from_labels(labels, /, *, name, reo… IndexHierarchyGO Constructor          Construct an IndexH…
from_labels_delimited(labels, /, *,… IndexHierarchyGO Constructor          Construct an IndexH…
from_names(names, /)                 IndexHierarchyGO Constructor          Construct a zero-le…
from_pandas(value, /)                IndexHierarchyGO Constructor          Given a Pandas inde…
from_product(*, name, index_constru… IndexHierarchyGO Constructor          Given groups of ite…
from_tree(tree, /, *, name, index_c… IndexHierarchyGO Constructor          Convert into a Inde…
from_union(*others)                  IndexHierarchyGO Constructor          Construct a new Ind…
from_values_per_depth(values, /, *,… IndexHierarchyGO Constructor          Construct an IndexH…
to_frame()                           IndexHierarchyGO Exporter             Return Frame versio…
to_frame_go()                        IndexHierarchyGO Exporter             Return a FrameGO ve…
to_html(config, /, *, style_config)  IndexHierarchyGO Exporter             Return an HTML tabl…
to_html_datatables(fp, /, *, show, … IndexHierarchyGO Exporter             Return a complete H…
to_pandas()                          IndexHierarchyGO Exporter             Return a Pandas Mul…
…                                    …                …                    …
via_re(pattern, flags, /).sub(repl,… IndexHierarchyGO Accessor Regular Ex… Return the string o…
via_re(pattern, flags, /).subn(repl… IndexHierarchyGO Accessor Regular Ex… Perform the same op…
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib     Return the byte sig…
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_hashlib(*, include_name, includ… IndexHierarchyGO Accessor Hashlib
via_type_clinic.to_hint()            IndexHierarchyGO Accessor Type Clinic Return the type hin…
via_type_clinic.check(hint, /, *, f… IndexHierarchyGO Accessor Type Clinic Given a hint (a typ…
via_type_clinic.warn(hint, /, *, fa… IndexHierarchyGO Accessor Type Clinic Given a hint (a typ…
via_type_clinic.__call__(hint, /, *… IndexHierarchyGO Accessor Type Clinic Given a hint (a typ…
via_type_clinic.__repr__()           IndexHierarchyGO Accessor Type Clinic Return a compact st…
<<U91>                               <<U16>           <<U27>               <<U81>
IndexHierarchyGO.__repr__()#

Return repr(self).

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> repr(ih)
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>
IndexHierarchyGO.__str__()#

Return str(self).

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> str(ih)
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>
IndexHierarchyGO.display(config=None, /, *, style_config=None)#

Return a static_frame.Display, capable of providing a string representation.

Parameters:

config – A static_frame.DisplayConfig instance. If not provided, the static_frame.DisplayActive will be used.

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> ih.display()
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>
>>> ih.display(sf.DisplayConfig(type_show=False))
a 1024 1517-04-01
a 2048 1789-12-31
b 0    1620-11-21
IndexHierarchyGO.display_tall(config=None, /)#

Maximize vertical presentation. Return a static_frame.Display, capable of providing a string representation.

Parameters:

config – A static_frame.DisplayConfig instance. If not provided, the static_frame.DisplayActive will be used.

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> ih.display_tall()
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>
IndexHierarchyGO.display_wide(config=None, /)#

Maximize horizontal presentation. Return a static_frame.Display, capable of providing a string representation.

Parameters:

config – A static_frame.DisplayConfig instance. If not provided, the static_frame.DisplayActive will be used.

>>> ih = sf.IndexHierarchyGO.from_labels((('a', 1024, '1517-04-01'), ('a', 2048, '1789-12-31'), ('b', 0, '1620-11-21')), index_constructors=(sf.Index, sf.Index, sf.IndexDate), name=('x', 'y', 'z'))
>>> ih.display_wide()
<IndexHierarchyGO: ('x', 'y', 'z')>
a                                   1024    1517-04-01
a                                   2048    1789-12-31
b                                   0       1620-11-21
<<U1>                               <int64> <datetime64[D]>

IndexHierarchyGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic