Detail: IndexNanosecond: Exporter

Overview: IndexNanosecond: Exporter

IndexNanosecond.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.

Parameters:

config – Optional DisplayConfig instance.

Returns:

str

IndexNanosecond.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.

Parameters:
  • 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.

Returns:

str, absolute file path to the file written.

IndexNanosecond.to_pandas()

Return a Pandas Index.

>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.to_pandas()
DatetimeIndex(['1789-05-05', '1789-12-31', '1799-11-09'], dtype='datetime64[ns]', freq=None)
IndexNanosecond.to_series()

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

>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix
<IndexNanosecond>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.to_series()
<Series>
<Index>
0        1789-05-05T00:00:...
1        1789-12-31T00:00:...
2        1799-11-09T00:00:...
<int64>  <datetime64[ns]>
IndexNanosecond.to_visidata()

Open an interactive VisiData session.

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