sf_quant.data.get_crsp_v2_daily_columns#

sf_quant.data.get_crsp_v2_daily_columns() str#

Return the available columns in the CRSP v2 daily dataset.

This function provides a schema of all CRSP v2 daily fields that can be retrieved with load_crsp_v2_daily(). The output is a string representationPolars DataFrame listing each column name along with its corresponding data type.

Returns#

str

A string representation of a polars data frame containing the column names and types for the assets table.

Examples#

>>> import sf_quant as sf
>>> sf.data.get_assets_columns()
shape: (30, 2)
┌──────────────────────┬─────────┐
│ column               ┆ dtype   │
│ ---                  ┆ ---     │
│ str                  ┆ str     │
╞══════════════════════╪═════════╡
│ date                 ┆ Date    │
│ rootid               ┆ String  │
│ barrid               ┆ String  │
│ issuerid             ┆ String  │
│ instrument           ┆ String  │
│ ...                  ┆ ...     │
└──────────────────────┴─────────┘