polars-df 0.9.0-arm64-darwin → 0.10.0-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/Cargo.lock +90 -45
- data/LICENSE-THIRD-PARTY.txt +602 -75
- data/README.md +1 -0
- data/lib/polars/3.1/polars.bundle +0 -0
- data/lib/polars/3.2/polars.bundle +0 -0
- data/lib/polars/3.3/polars.bundle +0 -0
- data/lib/polars/array_expr.rb +6 -2
- data/lib/polars/batched_csv_reader.rb +4 -2
- data/lib/polars/data_frame.rb +148 -74
- data/lib/polars/date_time_expr.rb +10 -4
- data/lib/polars/date_time_name_space.rb +9 -3
- data/lib/polars/expr.rb +37 -34
- data/lib/polars/functions/lazy.rb +3 -3
- data/lib/polars/functions/whenthen.rb +74 -5
- data/lib/polars/io.rb +18 -6
- data/lib/polars/lazy_frame.rb +39 -36
- data/lib/polars/list_expr.rb +6 -2
- data/lib/polars/series.rb +12 -10
- data/lib/polars/string_expr.rb +1 -0
- data/lib/polars/utils.rb +54 -0
- data/lib/polars/version.rb +1 -1
- data/lib/polars/whenthen.rb +83 -0
- data/lib/polars.rb +1 -2
- metadata +3 -4
- data/lib/polars/when.rb +0 -16
- data/lib/polars/when_then.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58967e39b49982a54b2462968b45add2c1f369178c76d58db5a4e543ac7c1ff9
|
4
|
+
data.tar.gz: 11ea7db4521a68e3d78f5ab56685a4e41037d0257e1dccd367c1d6896c4cc9c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4706b23f75c34c795da1ef4e81edc97bc0584e9193d0298b8ca3b302e523346e2f9ea32c53c1a6c601b810bd8c4630f5516e95de64fe9160290456a59bbe1ce3
|
7
|
+
data.tar.gz: 6b4cd6363362e5feb22e14ebcdd5272323b38ffc9c5dd97c33f704fa1b2b2ae298f96e3d6a36059d0f60cb918560a47cbc33c58957f6bb830b77ccd2e52ffaaf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 0.10.0 (2024-05-02)
|
2
|
+
|
3
|
+
- Updated Polars to 0.39.2
|
4
|
+
- Added support for writing JSON to string
|
5
|
+
- Added support for writing Parquet to `StringIO`
|
6
|
+
- Added support for cross joins
|
7
|
+
- Added `data_page_size` option to `write_parquet` method
|
8
|
+
- Added `truncate_ragged_lines` option to `read_csv`, `read_csv_batched`, and `scan_csv` methods
|
9
|
+
- Added precompiled gem for Linux x86-64 MUSL
|
10
|
+
- Changed `drop` method to ignore missing columns
|
11
|
+
- Fixed error with `then` method
|
12
|
+
|
1
13
|
## 0.9.0 (2024-03-03)
|
2
14
|
|
3
15
|
See the [upgrade guide](https://docs.pola.rs/releases/upgrade/0.20/)
|
data/Cargo.lock
CHANGED
@@ -83,9 +83,9 @@ dependencies = [
|
|
83
83
|
|
84
84
|
[[package]]
|
85
85
|
name = "argminmax"
|
86
|
-
version = "0.6.
|
86
|
+
version = "0.6.2"
|
87
87
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
88
|
-
checksum = "
|
88
|
+
checksum = "52424b59d69d69d5056d508b260553afd91c57e21849579cd1f50ee8b8b88eaa"
|
89
89
|
dependencies = [
|
90
90
|
"num-traits",
|
91
91
|
]
|
@@ -300,9 +300,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
300
300
|
|
301
301
|
[[package]]
|
302
302
|
name = "chrono"
|
303
|
-
version = "0.4.
|
303
|
+
version = "0.4.35"
|
304
304
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
305
|
-
checksum = "
|
305
|
+
checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a"
|
306
306
|
dependencies = [
|
307
307
|
"android-tzdata",
|
308
308
|
"iana-time-zone",
|
@@ -310,7 +310,7 @@ dependencies = [
|
|
310
310
|
"num-traits",
|
311
311
|
"serde",
|
312
312
|
"wasm-bindgen",
|
313
|
-
"windows-targets 0.
|
313
|
+
"windows-targets 0.52.0",
|
314
314
|
]
|
315
315
|
|
316
316
|
[[package]]
|
@@ -966,9 +966,9 @@ dependencies = [
|
|
966
966
|
|
967
967
|
[[package]]
|
968
968
|
name = "magnus"
|
969
|
-
version = "0.6.
|
969
|
+
version = "0.6.3"
|
970
970
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
971
|
-
checksum = "
|
971
|
+
checksum = "0fc7a31fb0b64761e3cd09a6975577601fccc5f08b8fc9245064fc4f71ed6a9d"
|
972
972
|
dependencies = [
|
973
973
|
"magnus-macros",
|
974
974
|
"rb-sys",
|
@@ -1243,7 +1243,7 @@ dependencies = [
|
|
1243
1243
|
|
1244
1244
|
[[package]]
|
1245
1245
|
name = "polars"
|
1246
|
-
version = "0.
|
1246
|
+
version = "0.10.0"
|
1247
1247
|
dependencies = [
|
1248
1248
|
"ahash",
|
1249
1249
|
"chrono",
|
@@ -1251,7 +1251,7 @@ dependencies = [
|
|
1251
1251
|
"jemallocator",
|
1252
1252
|
"magnus",
|
1253
1253
|
"mimalloc",
|
1254
|
-
"polars 0.
|
1254
|
+
"polars 0.39.2",
|
1255
1255
|
"polars-core",
|
1256
1256
|
"polars-parquet",
|
1257
1257
|
"polars-utils",
|
@@ -1261,9 +1261,9 @@ dependencies = [
|
|
1261
1261
|
|
1262
1262
|
[[package]]
|
1263
1263
|
name = "polars"
|
1264
|
-
version = "0.
|
1264
|
+
version = "0.39.2"
|
1265
1265
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1266
|
-
checksum = "
|
1266
|
+
checksum = "0ea21b858b16b9c0e17a12db2800d11aa5b4bd182be6b3022eb537bbfc1f2db5"
|
1267
1267
|
dependencies = [
|
1268
1268
|
"getrandom",
|
1269
1269
|
"polars-arrow",
|
@@ -1282,9 +1282,9 @@ dependencies = [
|
|
1282
1282
|
|
1283
1283
|
[[package]]
|
1284
1284
|
name = "polars-arrow"
|
1285
|
-
version = "0.
|
1285
|
+
version = "0.39.2"
|
1286
1286
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1287
|
-
checksum = "
|
1287
|
+
checksum = "725b09f2b5ef31279b66e27bbab63c58d49d8f6696b66b1f46c7eaab95e80f75"
|
1288
1288
|
dependencies = [
|
1289
1289
|
"ahash",
|
1290
1290
|
"atoi",
|
@@ -1330,9 +1330,9 @@ dependencies = [
|
|
1330
1330
|
|
1331
1331
|
[[package]]
|
1332
1332
|
name = "polars-compute"
|
1333
|
-
version = "0.
|
1333
|
+
version = "0.39.2"
|
1334
1334
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1335
|
-
checksum = "
|
1335
|
+
checksum = "a796945b14b14fbb79b91ef0406e6fddca2be636e889f81ea5d6ee7d36efb4fe"
|
1336
1336
|
dependencies = [
|
1337
1337
|
"bytemuck",
|
1338
1338
|
"either",
|
@@ -1346,9 +1346,9 @@ dependencies = [
|
|
1346
1346
|
|
1347
1347
|
[[package]]
|
1348
1348
|
name = "polars-core"
|
1349
|
-
version = "0.
|
1349
|
+
version = "0.39.2"
|
1350
1350
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1351
|
-
checksum = "
|
1351
|
+
checksum = "465f70d3e96b6d0b1a43c358ba451286b8c8bd56696feff020d65702aa33e35c"
|
1352
1352
|
dependencies = [
|
1353
1353
|
"ahash",
|
1354
1354
|
"bitflags 2.4.1",
|
@@ -1380,9 +1380,9 @@ dependencies = [
|
|
1380
1380
|
|
1381
1381
|
[[package]]
|
1382
1382
|
name = "polars-error"
|
1383
|
-
version = "0.
|
1383
|
+
version = "0.39.2"
|
1384
1384
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1385
|
-
checksum = "
|
1385
|
+
checksum = "5224d5d05e6b8a6f78b75951ae1b5f82c8ab1979e11ffaf5fd41941e3d5b0757"
|
1386
1386
|
dependencies = [
|
1387
1387
|
"avro-schema",
|
1388
1388
|
"polars-arrow-format",
|
@@ -1393,9 +1393,9 @@ dependencies = [
|
|
1393
1393
|
|
1394
1394
|
[[package]]
|
1395
1395
|
name = "polars-io"
|
1396
|
-
version = "0.
|
1396
|
+
version = "0.39.2"
|
1397
1397
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1398
|
-
checksum = "
|
1398
|
+
checksum = "b2c8589e418cbe4a48228d64b2a8a40284a82ec3c98817c0c2bcc0267701338b"
|
1399
1399
|
dependencies = [
|
1400
1400
|
"ahash",
|
1401
1401
|
"async-trait",
|
@@ -1433,9 +1433,9 @@ dependencies = [
|
|
1433
1433
|
|
1434
1434
|
[[package]]
|
1435
1435
|
name = "polars-json"
|
1436
|
-
version = "0.
|
1436
|
+
version = "0.39.2"
|
1437
1437
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1438
|
-
checksum = "
|
1438
|
+
checksum = "81224492a649a12b668480c0cf219d703f432509765d2717e72fe32ad16fc701"
|
1439
1439
|
dependencies = [
|
1440
1440
|
"ahash",
|
1441
1441
|
"chrono",
|
@@ -1454,9 +1454,9 @@ dependencies = [
|
|
1454
1454
|
|
1455
1455
|
[[package]]
|
1456
1456
|
name = "polars-lazy"
|
1457
|
-
version = "0.
|
1457
|
+
version = "0.39.2"
|
1458
1458
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1459
|
-
checksum = "
|
1459
|
+
checksum = "89b2632b1af668e2058d5f8f916d8fbde3cac63d03ae29a705f598e41dcfeb7f"
|
1460
1460
|
dependencies = [
|
1461
1461
|
"ahash",
|
1462
1462
|
"bitflags 2.4.1",
|
@@ -1478,9 +1478,9 @@ dependencies = [
|
|
1478
1478
|
|
1479
1479
|
[[package]]
|
1480
1480
|
name = "polars-ops"
|
1481
|
-
version = "0.
|
1481
|
+
version = "0.39.2"
|
1482
1482
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1483
|
-
checksum = "
|
1483
|
+
checksum = "efdbdb4d9a92109bc2e0ce8e17af5ae8ab643bb5b7ee9d1d74f0aeffd1fbc95f"
|
1484
1484
|
dependencies = [
|
1485
1485
|
"ahash",
|
1486
1486
|
"aho-corasick",
|
@@ -1515,9 +1515,9 @@ dependencies = [
|
|
1515
1515
|
|
1516
1516
|
[[package]]
|
1517
1517
|
name = "polars-parquet"
|
1518
|
-
version = "0.
|
1518
|
+
version = "0.39.2"
|
1519
1519
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1520
|
-
checksum = "
|
1520
|
+
checksum = "b421d2196f786fdfe162db614c8485f8308fe41575d4de634a39bbe460d1eb6a"
|
1521
1521
|
dependencies = [
|
1522
1522
|
"ahash",
|
1523
1523
|
"async-stream",
|
@@ -1541,9 +1541,9 @@ dependencies = [
|
|
1541
1541
|
|
1542
1542
|
[[package]]
|
1543
1543
|
name = "polars-pipe"
|
1544
|
-
version = "0.
|
1544
|
+
version = "0.39.2"
|
1545
1545
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1546
|
-
checksum = "
|
1546
|
+
checksum = "48700f1d5bd56a15451e581f465c09541492750360f18637b196f995470a015c"
|
1547
1547
|
dependencies = [
|
1548
1548
|
"crossbeam-channel",
|
1549
1549
|
"crossbeam-queue",
|
@@ -1566,14 +1566,15 @@ dependencies = [
|
|
1566
1566
|
|
1567
1567
|
[[package]]
|
1568
1568
|
name = "polars-plan"
|
1569
|
-
version = "0.
|
1569
|
+
version = "0.39.2"
|
1570
1570
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1571
|
-
checksum = "
|
1571
|
+
checksum = "2fb8e2302e20c44defd5be8cad9c96e75face63c3a5f609aced8c4ec3b3ac97d"
|
1572
1572
|
dependencies = [
|
1573
1573
|
"ahash",
|
1574
1574
|
"bytemuck",
|
1575
1575
|
"chrono",
|
1576
1576
|
"chrono-tz",
|
1577
|
+
"hashbrown 0.14.3",
|
1577
1578
|
"once_cell",
|
1578
1579
|
"percent-encoding",
|
1579
1580
|
"polars-arrow",
|
@@ -1585,6 +1586,7 @@ dependencies = [
|
|
1585
1586
|
"polars-time",
|
1586
1587
|
"polars-utils",
|
1587
1588
|
"rayon",
|
1589
|
+
"recursive",
|
1588
1590
|
"regex",
|
1589
1591
|
"serde",
|
1590
1592
|
"smartstring",
|
@@ -1594,9 +1596,9 @@ dependencies = [
|
|
1594
1596
|
|
1595
1597
|
[[package]]
|
1596
1598
|
name = "polars-row"
|
1597
|
-
version = "0.
|
1599
|
+
version = "0.39.2"
|
1598
1600
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1599
|
-
checksum = "
|
1601
|
+
checksum = "a515bdc68c2ae3702e3de70d89601f3b71ca8137e282a226dddb53ee4bacfa2e"
|
1600
1602
|
dependencies = [
|
1601
1603
|
"bytemuck",
|
1602
1604
|
"polars-arrow",
|
@@ -1606,9 +1608,9 @@ dependencies = [
|
|
1606
1608
|
|
1607
1609
|
[[package]]
|
1608
1610
|
name = "polars-sql"
|
1609
|
-
version = "0.
|
1611
|
+
version = "0.39.2"
|
1610
1612
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1611
|
-
checksum = "
|
1613
|
+
checksum = "7b4bb7cc1c04c3023d1953b2f1dec50515e8fd8169a5a2bf4967b3b082232db7"
|
1612
1614
|
dependencies = [
|
1613
1615
|
"hex",
|
1614
1616
|
"polars-arrow",
|
@@ -1624,9 +1626,9 @@ dependencies = [
|
|
1624
1626
|
|
1625
1627
|
[[package]]
|
1626
1628
|
name = "polars-time"
|
1627
|
-
version = "0.
|
1629
|
+
version = "0.39.2"
|
1628
1630
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1629
|
-
checksum = "
|
1631
|
+
checksum = "efc18e3ad92eec55db89d88f16c22d436559ba7030cf76f86f6ed7a754b673f1"
|
1630
1632
|
dependencies = [
|
1631
1633
|
"atoi",
|
1632
1634
|
"chrono",
|
@@ -1645,9 +1647,9 @@ dependencies = [
|
|
1645
1647
|
|
1646
1648
|
[[package]]
|
1647
1649
|
name = "polars-utils"
|
1648
|
-
version = "0.
|
1650
|
+
version = "0.39.2"
|
1649
1651
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1650
|
-
checksum = "
|
1652
|
+
checksum = "c760b6c698cfe2fbbbd93d6cfb408db14ececfe1d92445dae2229ce1b5b21ae8"
|
1651
1653
|
dependencies = [
|
1652
1654
|
"ahash",
|
1653
1655
|
"bytemuck",
|
@@ -1659,6 +1661,7 @@ dependencies = [
|
|
1659
1661
|
"raw-cpuid",
|
1660
1662
|
"rayon",
|
1661
1663
|
"smartstring",
|
1664
|
+
"stacker",
|
1662
1665
|
"sysinfo",
|
1663
1666
|
"version_check",
|
1664
1667
|
]
|
@@ -1678,6 +1681,15 @@ dependencies = [
|
|
1678
1681
|
"unicode-ident",
|
1679
1682
|
]
|
1680
1683
|
|
1684
|
+
[[package]]
|
1685
|
+
name = "psm"
|
1686
|
+
version = "0.1.21"
|
1687
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1688
|
+
checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874"
|
1689
|
+
dependencies = [
|
1690
|
+
"cc",
|
1691
|
+
]
|
1692
|
+
|
1681
1693
|
[[package]]
|
1682
1694
|
name = "quote"
|
1683
1695
|
version = "1.0.35"
|
@@ -1758,18 +1770,18 @@ dependencies = [
|
|
1758
1770
|
|
1759
1771
|
[[package]]
|
1760
1772
|
name = "rb-sys"
|
1761
|
-
version = "0.9.
|
1773
|
+
version = "0.9.97"
|
1762
1774
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1763
|
-
checksum = "
|
1775
|
+
checksum = "47d30bcad206b51f2f66121190ca678dce1fdf3a2eae0ac5d838d1818b19bdf5"
|
1764
1776
|
dependencies = [
|
1765
1777
|
"rb-sys-build",
|
1766
1778
|
]
|
1767
1779
|
|
1768
1780
|
[[package]]
|
1769
1781
|
name = "rb-sys-build"
|
1770
|
-
version = "0.9.
|
1782
|
+
version = "0.9.97"
|
1771
1783
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1772
|
-
checksum = "
|
1784
|
+
checksum = "3cbd92f281615f3c2dcb9dcb0f0576624752afbf9a7f99173b37c4b55b62dd8a"
|
1773
1785
|
dependencies = [
|
1774
1786
|
"bindgen",
|
1775
1787
|
"lazy_static",
|
@@ -1786,6 +1798,26 @@ version = "0.1.2"
|
|
1786
1798
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1787
1799
|
checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
1788
1800
|
|
1801
|
+
[[package]]
|
1802
|
+
name = "recursive"
|
1803
|
+
version = "0.1.1"
|
1804
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1805
|
+
checksum = "0786a43debb760f491b1bc0269fe5e84155353c67482b9e60d0cfb596054b43e"
|
1806
|
+
dependencies = [
|
1807
|
+
"recursive-proc-macro-impl",
|
1808
|
+
"stacker",
|
1809
|
+
]
|
1810
|
+
|
1811
|
+
[[package]]
|
1812
|
+
name = "recursive-proc-macro-impl"
|
1813
|
+
version = "0.1.1"
|
1814
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
1815
|
+
checksum = "76009fbe0614077fc1a2ce255e3a1881a2e3a3527097d5dc6d8212c585e7e38b"
|
1816
|
+
dependencies = [
|
1817
|
+
"quote",
|
1818
|
+
"syn 2.0.46",
|
1819
|
+
]
|
1820
|
+
|
1789
1821
|
[[package]]
|
1790
1822
|
name = "redox_syscall"
|
1791
1823
|
version = "0.4.1"
|
@@ -2012,6 +2044,19 @@ dependencies = [
|
|
2012
2044
|
"log",
|
2013
2045
|
]
|
2014
2046
|
|
2047
|
+
[[package]]
|
2048
|
+
name = "stacker"
|
2049
|
+
version = "0.1.15"
|
2050
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2051
|
+
checksum = "c886bd4480155fd3ef527d45e9ac8dd7118a898a46530b7b94c3e21866259fce"
|
2052
|
+
dependencies = [
|
2053
|
+
"cc",
|
2054
|
+
"cfg-if",
|
2055
|
+
"libc",
|
2056
|
+
"psm",
|
2057
|
+
"winapi",
|
2058
|
+
]
|
2059
|
+
|
2015
2060
|
[[package]]
|
2016
2061
|
name = "static_assertions"
|
2017
2062
|
version = "1.1.0"
|