chainladder.list_samples#
- chainladder.list_samples(include_grain: bool = True) DataFrame[source]#
List the sample datasets bundled with the chainladder package.
The returned table is driven by the sample-dataset manifest (
chainladder/utils/data/_manifest.py), the same sourceload_sample()reads, so it always reflects exactly what is loadable.- Parameters:
- include_grain: bool
If
True(default), load each sample to report its origin and development grain (and the number of origin/development periods). This is the slower path because every Triangle is built. Set toFalseto return just the manifest metadata (name, index, columns, cumulative) without loading any data.
- Returns:
- pandas.DataFrame indexed by sample name, with columns
index, columns,cumulativeand, wheninclude_grainisTrue,origin_grain,development_grain,origin_periodsanddevelopment_periods.
- pandas.DataFrame indexed by sample name, with columns
Examples
import chainladder as cl cl.list_samples() # full table, grain included cl.list_samples(include_grain=False) # fast, metadata only