pl.cs (Column Selectors)
Namespace: Polars.FSharp
Column selectors.
Module Functions
pl.cs.all
Select all columns.
pl.cs.all : unit -> Selectorpl.cs.alpha
Select all columns with alphabetic names.
pl.cs.alpha : asciiOnly: bool -> ignoreSpaces: bool -> SelectorParameters
| Name | Type | Description |
|---|---|---|
asciiOnly | bool | - |
ignoreSpaces | bool | - |
pl.cs.alphanumeric
Select all columns with alphanumeric names.
pl.cs.alphanumeric : asciiOnly: bool -> ignoreSpaces: bool -> SelectorParameters
| Name | Type | Description |
|---|---|---|
asciiOnly | bool | - |
ignoreSpaces | bool | - |
pl.cs.array
Select array columns. Optionally filter by inner data type and fixed width. Example: pl.cs.array (Some(pl.cs.numeric())) (Some 3L)
pl.cs.array : inner: Selector option -> width: int64 option -> SelectorParameters
| Name | Type | Description |
|---|---|---|
inner | Selector option | - |
width | int64 option | - |
pl.cs.arrayAll
Select all array columns.
pl.cs.arrayAll : unit -> Selectorpl.cs.binary
Select binary columns.
pl.cs.binary : unit -> Selectorpl.cs.boolean
Select boolean columns.
pl.cs.boolean : unit -> Selectorpl.cs.byIndex
Select columns by their index with.
pl.cs.byIndex : indices: ReadOnlySpan<int64> -> SelectorParameters
| Name | Type | Description |
|---|---|---|
indices | ReadOnlySpan<int64> | - |
pl.cs.byIndexStrict
Select columns by their index. Usage: cs.byIndex(0L, 2L, 4L)
pl.cs.byIndexStrict : indices: ReadOnlySpan<int64> -> SelectorParameters
| Name | Type | Description |
|---|---|---|
indices | ReadOnlySpan<int64> | - |
pl.cs.byName
Select a single column by name.
pl.cs.byName : names: seq<string> -> SelectorParameters
| Name | Type | Description |
|---|---|---|
names | seq<string> | - |
pl.cs.byNetType
Select columns by Generic Type. Usage: pl.cs.byType<int option>() or pl.cs.byType<DateTime>()
pl.cs.byNetType : unit -> Selectorpl.cs.byType
Select columns by DataType.
pl.cs.byType : dt: DataType -> SelectorParameters
| Name | Type | Description |
|---|---|---|
dt | DataType | - |
pl.cs.cjkCols
[EN] Select columns whose names consist of CJK scripts, Unicode digits (\p{N}), and optionally ASCII/full-width Latin letters.
[ZH] 选择列名由中日韩字符、数字(\p{N},含全/半角)以及可选英文字母(全/半角)组成的列。
[JA] 列名がCJK文字・数字(\p{N}、全角/半角)および英字(全角/半角)で構成される列を選択します。
[KO] 열 이름이 CJK 문자, 숫자(\p{N}, 전각/반각) 및 영문자(전각/반각)로 구성된 열을 선택합니다.
pl.cs.cjkCols : opts: CjkColumnOptions -> SelectorParameters
| Name | Type | Description |
|---|---|---|
opts | CjkColumnOptions | - |
pl.cs.contains
Select columns containing a pattern.
pl.cs.contains : pattern: string -> SelectorParameters
| Name | Type | Description |
|---|---|---|
pattern | string | - |
pl.cs.date
Select date columns.
pl.cs.date : unit -> Selectorpl.cs.datetime
Select all datetime columns (both with and without timezones).
pl.cs.datetime : timeUnit: TimeUnit -> SelectorParameters
| Name | Type | Description |
|---|---|---|
timeUnit | TimeUnit | - |
pl.cs.datetimeAware
Select ONLY timezone-aware datetime columns (any timezone).
pl.cs.datetimeAware : timeUnit: TimeUnit -> SelectorParameters
| Name | Type | Description |
|---|---|---|
timeUnit | TimeUnit | - |
pl.cs.datetimeExact
Select datetime columns matching a specific timezone (e.g., "UTC", "Asia/Shanghai").
pl.cs.datetimeExact : timeZone: string -> timeUnit: TimeUnit -> SelectorParameters
| Name | Type | Description |
|---|---|---|
timeZone | string | - |
timeUnit | TimeUnit | - |
pl.cs.datetimeNaive
Select ONLY timezone-naive datetime columns (no timezone set).
pl.cs.datetimeNaive : timeUnit: TimeUnit -> SelectorParameters
| Name | Type | Description |
|---|---|---|
timeUnit | TimeUnit | - |
pl.cs.decimal
Select decimal columns.
pl.cs.decimal : unit -> Selectorpl.cs.duration
Select all duration columns. Optionally match a specific TimeUnit.
pl.cs.duration : timeUnit: TimeUnit -> SelectorParameters
| Name | Type | Description |
|---|---|---|
timeUnit | TimeUnit | - |
pl.cs.empty
Select empty columns.
pl.cs.empty : unit -> Selectorpl.cs.endsWith
Select columns ending with a pattern.
pl.cs.endsWith : pattern: string -> SelectorParameters
| Name | Type | Description |
|---|---|---|
pattern | string | - |
pl.cs.enum
Select enum columns.
pl.cs.enum : unit -> Selectorpl.cs.exclude
Select all columns EXCEPT the specified Selectors.
pl.cs.exclude : selectors: seq<Selector> -> SelectorParameters
| Name | Type | Description |
|---|---|---|
selectors | seq<Selector> | - |
pl.cs.excludeDataType
Select all columns EXCEPT the specified Data Types.
pl.cs.excludeDataType : dtypes: seq<DataType> -> SelectorParameters
| Name | Type | Description |
|---|---|---|
dtypes | seq<DataType> | - |
pl.cs.expandDf
Expand a Selector against a DataFrame to get the matched column names.
pl.cs.expandDf : selector: IColumnExpr -> target: DataFrame -> string[]Parameters
| Name | Type | Description |
|---|---|---|
selector | IColumnExpr | - |
target | DataFrame | - |
pl.cs.expandLf
Expand a Selector against a LazyFrame to get the matched column names.
pl.cs.expandLf : selector: IColumnExpr -> target: LazyFrame -> string[]Parameters
| Name | Type | Description |
|---|---|---|
selector | IColumnExpr | - |
target | LazyFrame | - |
pl.cs.first
Select the first column.
pl.cs.first : unit -> Selectorpl.cs.float
Select float columns.
pl.cs.float : unit -> Selectorpl.cs.integer
Select integer columns.
pl.cs.integer : unit -> Selectorpl.cs.last
Select the last column.
pl.cs.last : unit -> Selectorpl.cs.list
Select list columns. Optionally filter by the inner data type. Example: pl.cs.list(Some(pl.cs.numeric()))
pl.cs.list : inner: Selector option -> SelectorParameters
| Name | Type | Description |
|---|---|---|
inner | Selector option | - |
pl.cs.listAll
Select all list columns.
pl.cs.listAll : unit -> Selectorpl.cs.matches
Select columns matching a regex pattern.
pl.cs.matches : regex: string -> SelectorParameters
| Name | Type | Description |
|---|---|---|
regex | string | - |
pl.cs.nested
Select nested columns.
pl.cs.nested : unit -> Selectorpl.cs.numeric
Select numeric columns (Int, Float, Decimal).
pl.cs.numeric : unit -> Selectorpl.cs.signedInteger
Select signed integer columns.
pl.cs.signedInteger : unit -> Selectorpl.cs.startsWith
Select columns starting with a pattern.
pl.cs.startsWith : pattern: string -> SelectorParameters
| Name | Type | Description |
|---|---|---|
pattern | string | - |
pl.cs.string
Select string columns.
pl.cs.string : unit -> Selectorpl.cs.structType
Select struct columns.
pl.cs.structType : unit -> Selectorpl.cs.temporal
Select temporal columns.
pl.cs.temporal : unit -> Selectorpl.cs.unsignedInteger
Select unsigned integer columns.
pl.cs.unsignedInteger : unit -> Selector