Repository navigation
Nanuq 0.2
Nanuq 0.2 covers what a first real analysis needs: data types and casts, joins and concatenation, frame verbs, conditional and window expressions, column selectors, and CSV options with lazy scanCsv. The walkthrough is The great polar bear census. The prebuilt Polars library is lib-v0.2.0 (Polars 0.55), downloaded automatically.
Added
- Data types:
DataTypeconstants with Polars names (Int64,String, ...),dtypes,schema,collectSchema, andcasttaking a Nim type orDataTypevalues, strict by default (#26) - Joins and concat:
join(inner, left, right, full, semi, anti, cross) withvalidate,coalesce,maintainOrder;concatvertical, horizontal or diagonal (#28) - Frame verbs:
drop,rename,tail,slice,reverse,withRowIndex,unique, multi-keysortwithnullsLast,samplewithseed,setRandomSeed(#30, #31) - Expressions:
`when`/then/otherwiseand thechoosemacro,isIn,isBetween,mod,div,^,abs,round,median,var,quantile,len,fillNull(Forward),forwardFill,backwardFill, and windows withover(#33) - Column selectors:
col(SomeNumber)and other Nim typeclasses,col(int),col("a", "b"),all(),exclude,name.suffix/name.prefix(#35) - CSV: lazy
scanCsvwith globs, and read options (separator,nullValues,schemaOverrides,skipRows,nRows,columns, ...) and write options (quoteStyle,floatPrecision,decimalComma, ...) (#37) - API conventions: Polars names in camelCase, option values as pure enums with Rust Polars names (#28)
Breaking
dtype(df, col)returns aDataTypeinstead of a string;$gives the old string (#26)DataTypeKindis a pure enum with Polars names (DataTypeKind.Int64) (#28)
Known limitations
No dates, datetimes or categoricals yet, no string functions, and CSV is the only file format.
Full changelog: CHANGELOG.md
All PRs
- Backlog: discuss whether to use Atlas by @pietroppeter in #24
- Proposal: add-datatype-and-cast (DataType, schemas, cast) by @pietroppeter in #25
- DataType, schemas and cast (implements add-datatype-and-cast) by @pietroppeter in #26
- Proposal: add-joins-and-concat (and the option-value convention) by @pietroppeter in #27
- Add joins and concatenation by @pietroppeter in #28
- Propose add-frame-verbs by @pietroppeter in #29
- Add frame verbs by @pietroppeter in #30
- Add setRandomSeed and plain int seed for sample by @pietroppeter in #31
- Propose add-expr-essentials by @pietroppeter in #32
- Add expression essentials by @pietroppeter in #33
- Propose add-column-selectors by @pietroppeter in #34
- Add column selectors by @pietroppeter in #35
- Propose add-csv-options-and-scan by @pietroppeter in #36
- Implement add-csv-options-and-scan by @pietroppeter in #37
- Add the 0.2 explainer post: the great polar bear census by @pietroppeter in #38
- Prepare the 0.2.0 release by @pietroppeter in #39
- README: link the Nanuq Book by @pietroppeter in #40
- Propose add-spec-examples (OpenSpec change) by @pietroppeter in #41
- Prebuilt library sums for lib-v0.2.0 by @github-actions[bot] in #42
Full Changelog: v0.1.0...v0.2.0