Detail: IndexHour: Exporter

Overview: IndexHour: Exporter

IndexHour.to_html(config=None, style_config=<static_frame.core.style_config.StyleConfig object>)

Return an HTML table representation of this Index using standard TABLE, TR, and TD tags. This is not a complete HTML page.


config – Optional DisplayConfig instance.



IndexHour.to_html_datatables(fp=None, *, show=True, config=None)

Return a complete HTML representation of this Index using the DataTables JS library for table naviagation and search. The page links to CDNs for JS resources, and thus will not fully render without an internet connection.

  • fp – optional file path to write; if not provided, a temporary file will be created. Note: the caller is responsible for deleting this file.

  • show – if True, the file will be opened with a webbrowser.

  • config – Optional DisplayConfig instance.


str, absolute file path to the file written.


Return a Pandas Index.

>>> ix = sf.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix.to_pandas()
OutOfBoundsDatetime('Out of bounds nanosecond timestamp: 1517-04-01 00:00:00')

Return a Series with values from this Index’s labels.

>>> ix = sf.IndexHour(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix.to_series()
0        1517-04-01T00
1        1517-12-31T00
2        1517-06-30T00
<int64>  <datetime64[h]>

Open an interactive VisiData session.

IndexHour: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression