Initializing playground…
← Back to roadmap

xs — Cross-Section Selection — tsb playground

xsDataFrame(df, key) extracts a row by label as a Series, or a column by name (with axis: 1). Works with both flat and MultiIndex DataFrames.

Code Examples

TypeScript
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent