Enums & Discriminated Unions
Namespace: Polars.FSharp
Active
fsharp
type Active =
| Set of bool
| ResetToDefaultAdbcIngestMode
Specifies the behavior when bulk ingesting a DataFrame into an ADBC database table.
fsharp
type AdbcIngestMode =
| Create
| Append
| ReplaceAlignment
fsharp
type Alignment =
| Left
| Center
| Right
| ResetToDefaultAsofStrategy
fsharp
type AsofStrategy =
| Backward
| Forward
| NearestAvroCompression
fsharp
type AvroCompression =
| Uncompressed
| Deflate
| SnappyCatalogTableType
fsharp
type CatalogTableType =
| Managed
| ExternalCategoricalPhysical
fsharp
type CategoricalPhysical =
| U32
| U16
| U8CharSet
fsharp
type CharSet =
| Set of char
| ResetToDefaultChunkSet
fsharp
type ChunkSet =
| Set of uint64
| ResetToDefaultClosedInterval
fsharp
type ClosedInterval =
| Left
| Right
| Both
| NoWindowCloudProvider
fsharp
type CloudProvider =
| NotCloud
| Aws
| Azure
| Gcp
| Http
| HuggingFaceConcatType
Specifies the type of concat operations.
fsharp
type ConcatType =
| Vertical
| Horizontal
| DiagonalConfigScope
fsharp
type ConfigScope =
| SetOnly
| AllCsvEncoding
fsharp
type CsvEncoding =
| UTF8
| LossyUTF8DataTypeKind
fsharp
type DataTypeKind =
| SameAsInput
| Null
| Boolean
| Int8
| Int16
| Int32
| Int64
| UInt8
| UInt16
| UInt32
| UInt64
| Float32
| Float64
| String
| Binary
| Date
| Time
| Int128
| UInt128
| Float16
| Datetime of TimeUnit * string option
| Duration of TimeUnit
| Categorical of Categories option
| Decimal of int * int
| List of DataType
| Struct of seq<Field>
| Array of DataType * uint32[]
| Enum of FrozenCategories
| Extension of <>f__AnonymousType2529729763<string option, string, DataType>
| UnknownDeltaSaveMode
mode for saving delta lake table
fsharp
type DeltaSaveMode =
| Append
| Overwrite
| ErrorIfExists
| IgnoreDtype
fsharp
type Dtype =
| DataTypeExpr of DataTypeExpr
| PlDataType of DataType
| NetType of TypeDur
fsharp
type Dur =
| String of string
| TimeSpan of TimeSpan
| Index of intEndianness
fsharp
type Endianness =
| Little
| BigEngine
fsharp
type Engine =
| Auto
| InMemory
| Gpu
| StreamingEpochTimeUnit
fsharp
type EpochTimeUnit =
| Nanoseconds
| Microseconds
| Milliseconds
| Second
| DayExtensionRegistration
fsharp
type ExtensionRegistration =
| AsStorage
| AsType of ((DataType * string option) -> DataType)ExternalCompression
fsharp
type ExternalCompression =
| Uncompressed
| Gzip
| ZSTDExtraColumnsPolicy
fsharp
type ExtraColumnsPolicy =
| Raise
| IgnoreFillNullStrategy
fsharp
type FillNullStrategy =
| Forward
| Backward
| Max
| Min
| Mean
| Zero
| OneFloatFormat
fsharp
type FloatFormat =
| Mixed
| Full
| ResetToDefaultGroupByType
Defines the type of GroupBy operation and stores specific parameters for each strategy.
fsharp
type GroupByType =
| Standard of maintainOrder: bool
| Dynamic of indexColumn: string * every: string * period: string * offset: string * label: Label * includeBoundaries: bool * closedInterval: ClosedInterval * startBy: StartBy
| Rolling of indexColumn: string * period: string * offset: string * closedInterval: ClosedIntervalInterpolationMethod
fsharp
type InterpolationMethod =
| Nearest
| LinearIpcCompression
fsharp
type IpcCompression =
| NoCompression
| LZ4
| ZSTDJoinCoalesce
fsharp
type JoinCoalesce =
| JoinSpecific
| CoalesceColumns
| KeepColumnsJoinMaintainOrder
fsharp
type JoinMaintainOrder =
| NotMaintainOrder
| Left
| Right
| LeftRight
| RightLeftJoinSide
fsharp
type JoinSide =
| LetPolarsDecide
| PreferLeft
| ForceLeft
| PreferRight
| ForceRightJoinType
Represents the type of join operation to perform.
fsharp
type JoinType =
| Inner
| Left
| Outer
| Cross
| Semi
| AntiJoinValidation
fsharp
type JoinValidation =
| ManyToMany
| ManyToOne
| OneToMany
| OneToOneJsonFormat
fsharp
type JsonFormat =
| Json
| JsonLinesLabel
fsharp
type Label =
| Left
| Right
| DataPointMergeAction
fsharp
type MergeAction =
| MatchedUpdate of condition: (MergeContext -> Expr) * setters: SetterSpec option
| MatchedDelete of condition: (MergeContext -> Expr)
| NotMatchedInsert of condition: (MergeContext -> Expr) * setters: SetterSpec option
| NotMatchedBySourceDelete of condition: (MergeContext -> Expr)MergeActionType
Defines the type of action to perform during a Delta Merge operation.
fsharp
type MergeActionType =
| MatchedUpdate
| MatchedDelete
| NotMatchedInsert
| NotMatchedBySourceDeleteMissingColumnsPolicy
fsharp
type MissingColumnsPolicy =
| Raise
| InsertNonExistent
fsharp
type NonExistent =
| Raise
| SetNullNullBehavior
fsharp
type NullBehavior =
| Ignore
| DropNumSet
fsharp
type NumSet =
| Set of int
| ResetToDefaultParallelStrategy
fsharp
type ParallelStrategy =
| Auto
| Columns
| RowGroups
| NoParallelParquetCompression
fsharp
type ParquetCompression =
| Uncompressed
| Snappy
| Gzip
| Brotli
| Zstd
| Lz4RawPartitionKey
Represents a composite partition key consisting of multiple boxed column values. Defined as a single-case discriminated union to support natural constructor syntax and satisfy F# Map comparison constraints with zero compiler conflicts.
fsharp
type PartitionKey =
| PartitionKey of obj[]PivotAgg
Specifies the aggregation function for pivot operations.
fsharp
type PivotAgg =
| First
| Sum
| Min
| Max
| Mean
| Median
| Count
| LastPivotColumnNaming
fsharp
type PivotColumnNaming =
| Auto
| CombineQuantileMethod
fsharp
type QuantileMethod =
| Nearest
| Higher
| Lower
| Midpoint
| LinearQuoteStyle
fsharp
type QuoteStyle =
| Always
| Necessary
| Never
| NonNumericRankMethod
fsharp
type RankMethod =
| Average
| Min
| Max
| Dense
| Ordinal
| RandomRoll
fsharp
type Roll =
| Raise
| Forward
| BackwardRollingRankMethod
fsharp
type RollingRankMethod =
| Average
| Min
| Max
| Dense
| RandomRoundMode
fsharp
type RoundMode =
| HalfAwayFromZero
| HalfToEven
| ToZeroSearchSortedSide
fsharp
type SearchSortedSide =
| Any
| Left
| RightSetterSpec
fsharp
type SetterSpec =
| Explicit of Map<string, Expr>
| Dynamic of (MergeContext -> Map<string, Expr>)SizeUnit
fsharp
type SizeUnit =
| Bytes
| Kilobytes
| Megabytes
| Gigabytes
| TerabytesSortStateFlags
Bitwise flags representing the sorting state of a Series or Column.
fsharp
type SortStateFlags =
| NotSorted
| IsSorted
| Descending
| NullsLastStartBy
fsharp
type StartBy =
| WindowBound
| DataPoint
| Monday
| Tuesday
| Wednesday
| Thursday
| Friday
| Saturday
| SundaySyncOnClose
fsharp
type SyncOnClose =
| NoSync
| Data
| AllTableFormatting
fsharp
type TableFormatting =
| AsciiFull
| AsciiFullCondensed
| AsciiNoBorders
| AsciiBordersOnly
| AsciiBordersOnlyCondensed
| AsciiHorizontalOnly
| AsciiMarkdown
| Markdown
| Utf8Full
| Utf8FullCondensed
| Utf8NoBorders
| Utf8BordersOnly
| Utf8HorizontalOnly
| Nothing
| ResetToDefaultTimeUnit
fsharp
type TimeUnit =
| Nanoseconds
| Microseconds
| MillisecondsTolerance
fsharp
type Tolerance =
| String of string
| TimeSpan of TimeSpan
| Integer of int64
| Float of floatTransferEncoding
fsharp
type TransferEncoding =
| Base64
| HexUniqueKeepStrategy
fsharp
type UniqueKeepStrategy =
| First
| Last
| Any
| NoKeepUnstackDirection
fsharp
type UnstackDirection =
| Vertical
| HorizontalUpcastOrForbid
fsharp
type UpcastOrForbid =
| Forbid
| UpcastWindowMappingStrategy
fsharp
type WindowMappingStrategy =
| GroupsToRows
| Explode
| Join