polars-df 0.10.0-x86_64-darwin → 0.11.0-x86_64-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 +11 -0
- data/Cargo.lock +90 -48
- data/LICENSE-THIRD-PARTY.txt +152 -79
- data/README.md +6 -6
- 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/batched_csv_reader.rb +9 -3
- data/lib/polars/convert.rb +6 -1
- data/lib/polars/data_frame.rb +83 -302
- data/lib/polars/date_time_expr.rb +1 -0
- data/lib/polars/date_time_name_space.rb +5 -1
- data/lib/polars/dynamic_group_by.rb +2 -2
- data/lib/polars/exceptions.rb +4 -0
- data/lib/polars/expr.rb +1134 -20
- data/lib/polars/functions/range/date_range.rb +92 -0
- data/lib/polars/functions/range/datetime_range.rb +149 -0
- data/lib/polars/functions/range/time_range.rb +141 -0
- data/lib/polars/group_by.rb +88 -23
- data/lib/polars/io/avro.rb +24 -0
- data/lib/polars/{io.rb → io/csv.rb} +296 -490
- data/lib/polars/io/database.rb +73 -0
- data/lib/polars/io/ipc.rb +247 -0
- data/lib/polars/io/json.rb +18 -0
- data/lib/polars/io/ndjson.rb +69 -0
- data/lib/polars/io/parquet.rb +226 -0
- data/lib/polars/lazy_frame.rb +23 -166
- data/lib/polars/lazy_group_by.rb +100 -3
- data/lib/polars/rolling_group_by.rb +2 -2
- data/lib/polars/series.rb +2 -2
- data/lib/polars/string_expr.rb +37 -36
- data/lib/polars/utils.rb +35 -1
- data/lib/polars/version.rb +1 -1
- data/lib/polars.rb +9 -1
- metadata +12 -4
data/LICENSE-THIRD-PARTY.txt
CHANGED
@@ -66,7 +66,7 @@ avro-schema v0.3.0
|
|
66
66
|
https://github.com/DataEngineeringLabs/avro-schema
|
67
67
|
MIT/Apache-2.0
|
68
68
|
|
69
|
-
base64 v0.
|
69
|
+
base64 v0.22.1
|
70
70
|
https://github.com/marshallpierce/rust-base64
|
71
71
|
MIT OR Apache-2.0
|
72
72
|
|
@@ -78,11 +78,11 @@ bitflags v2.4.1
|
|
78
78
|
https://github.com/bitflags/bitflags
|
79
79
|
MIT OR Apache-2.0
|
80
80
|
|
81
|
-
brotli
|
81
|
+
brotli v5.0.0
|
82
82
|
https://github.com/dropbox/rust-brotli
|
83
|
-
BSD-3-Clause
|
83
|
+
BSD-3-Clause OR MIT
|
84
84
|
|
85
|
-
brotli-decompressor
|
85
|
+
brotli-decompressor v4.0.0
|
86
86
|
https://github.com/dropbox/rust-brotli-decompressor
|
87
87
|
BSD-3-Clause/MIT
|
88
88
|
|
@@ -173,8 +173,8 @@ dyn-clone v1.0.16
|
|
173
173
|
https://github.com/dtolnay/dyn-clone
|
174
174
|
MIT OR Apache-2.0
|
175
175
|
|
176
|
-
either v1.
|
177
|
-
https://github.com/
|
176
|
+
either v1.12.0
|
177
|
+
https://github.com/rayon-rs/either
|
178
178
|
MIT OR Apache-2.0
|
179
179
|
|
180
180
|
enum_dispatch v0.3.12
|
@@ -373,7 +373,7 @@ lz4-sys v1.9.4
|
|
373
373
|
https://github.com/10xGenomics/lz4-rs
|
374
374
|
MIT
|
375
375
|
|
376
|
-
magnus v0.6.
|
376
|
+
magnus v0.6.4
|
377
377
|
https://github.com/matsadler/magnus
|
378
378
|
MIT
|
379
379
|
|
@@ -421,7 +421,7 @@ now v0.1.3
|
|
421
421
|
https://github.com/Kilerd/now
|
422
422
|
MIT
|
423
423
|
|
424
|
-
num-traits v0.2.
|
424
|
+
num-traits v0.2.19
|
425
425
|
https://github.com/rust-num/num-traits
|
426
426
|
MIT OR Apache-2.0
|
427
427
|
|
@@ -489,70 +489,74 @@ planus v0.3.1
|
|
489
489
|
https://github.com/planus-org/planus
|
490
490
|
MIT/Apache-2.0
|
491
491
|
|
492
|
-
polars v0.
|
492
|
+
polars v0.40.0
|
493
493
|
https://www.pola.rs/
|
494
494
|
MIT
|
495
495
|
|
496
|
-
polars-arrow v0.
|
496
|
+
polars-arrow v0.40.0
|
497
497
|
https://www.pola.rs/
|
498
498
|
MIT AND Apache-2.0
|
499
499
|
|
500
500
|
polars-arrow-format v0.1.0
|
501
501
|
https://github.com/polar-rs/arrow-format
|
502
502
|
|
503
|
-
polars-compute v0.
|
503
|
+
polars-compute v0.40.0
|
504
|
+
https://www.pola.rs/
|
505
|
+
MIT
|
506
|
+
|
507
|
+
polars-core v0.40.0
|
504
508
|
https://www.pola.rs/
|
505
509
|
MIT
|
506
510
|
|
507
|
-
polars-
|
511
|
+
polars-error v0.40.0
|
508
512
|
https://www.pola.rs/
|
509
513
|
MIT
|
510
514
|
|
511
|
-
polars-
|
515
|
+
polars-expr v0.40.0
|
512
516
|
https://www.pola.rs/
|
513
517
|
MIT
|
514
518
|
|
515
|
-
polars-io v0.
|
519
|
+
polars-io v0.40.0
|
516
520
|
https://www.pola.rs/
|
517
521
|
MIT
|
518
522
|
|
519
|
-
polars-json v0.
|
523
|
+
polars-json v0.40.0
|
520
524
|
https://www.pola.rs/
|
521
525
|
MIT
|
522
526
|
|
523
|
-
polars-lazy v0.
|
527
|
+
polars-lazy v0.40.0
|
524
528
|
https://www.pola.rs/
|
525
529
|
MIT
|
526
530
|
|
527
|
-
polars-ops v0.
|
531
|
+
polars-ops v0.40.0
|
528
532
|
https://www.pola.rs/
|
529
533
|
MIT
|
530
534
|
|
531
|
-
polars-parquet v0.
|
535
|
+
polars-parquet v0.40.0
|
532
536
|
https://www.pola.rs/
|
533
537
|
MIT AND Apache-2.0
|
534
538
|
|
535
|
-
polars-pipe v0.
|
539
|
+
polars-pipe v0.40.0
|
536
540
|
https://www.pola.rs/
|
537
541
|
MIT
|
538
542
|
|
539
|
-
polars-plan v0.
|
543
|
+
polars-plan v0.40.0
|
540
544
|
https://www.pola.rs/
|
541
545
|
MIT
|
542
546
|
|
543
|
-
polars-row v0.
|
547
|
+
polars-row v0.40.0
|
544
548
|
https://www.pola.rs/
|
545
549
|
MIT
|
546
550
|
|
547
|
-
polars-sql v0.
|
551
|
+
polars-sql v0.40.0
|
548
552
|
https://www.pola.rs/
|
549
553
|
MIT
|
550
554
|
|
551
|
-
polars-time v0.
|
555
|
+
polars-time v0.40.0
|
552
556
|
https://www.pola.rs/
|
553
557
|
MIT
|
554
558
|
|
555
|
-
polars-utils v0.
|
559
|
+
polars-utils v0.40.0
|
556
560
|
https://www.pola.rs/
|
557
561
|
MIT
|
558
562
|
|
@@ -748,6 +752,10 @@ strum_macros v0.25.3
|
|
748
752
|
https://github.com/Peternator7/strum
|
749
753
|
MIT
|
750
754
|
|
755
|
+
strum_macros v0.26.2
|
756
|
+
https://github.com/Peternator7/strum
|
757
|
+
MIT
|
758
|
+
|
751
759
|
syn v1.0.109
|
752
760
|
https://github.com/dtolnay/syn
|
753
761
|
MIT OR Apache-2.0
|
@@ -1497,33 +1505,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1497
1505
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1498
1506
|
SOFTWARE.
|
1499
1507
|
|
1500
|
-
================================================================================
|
1501
|
-
array-init-cursor LICENSE-MIT
|
1502
|
-
================================================================================
|
1503
|
-
|
1504
|
-
MIT License
|
1505
|
-
|
1506
|
-
Copyright (c) 2021 The Planus Project Developers
|
1507
|
-
|
1508
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
1509
|
-
of this software and associated documentation files (the "Software"), to deal
|
1510
|
-
in the Software without restriction, including without limitation the rights
|
1511
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1512
|
-
copies of the Software, and to permit persons to whom the Software is
|
1513
|
-
furnished to do so, subject to the following conditions:
|
1514
|
-
|
1515
|
-
The above copyright notice and this permission notice shall be included in all
|
1516
|
-
copies or substantial portions of the Software.
|
1517
|
-
|
1518
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1519
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1520
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1521
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1522
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1523
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1524
|
-
SOFTWARE.
|
1525
|
-
|
1526
|
-
|
1527
1508
|
================================================================================
|
1528
1509
|
array-init-cursor LICENSE-APACHE
|
1529
1510
|
================================================================================
|
@@ -1706,6 +1687,33 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
1706
1687
|
END OF TERMS AND CONDITIONS
|
1707
1688
|
|
1708
1689
|
|
1690
|
+
================================================================================
|
1691
|
+
array-init-cursor LICENSE-MIT
|
1692
|
+
================================================================================
|
1693
|
+
|
1694
|
+
MIT License
|
1695
|
+
|
1696
|
+
Copyright (c) 2021 The Planus Project Developers
|
1697
|
+
|
1698
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
1699
|
+
of this software and associated documentation files (the "Software"), to deal
|
1700
|
+
in the Software without restriction, including without limitation the rights
|
1701
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1702
|
+
copies of the Software, and to permit persons to whom the Software is
|
1703
|
+
furnished to do so, subject to the following conditions:
|
1704
|
+
|
1705
|
+
The above copyright notice and this permission notice shall be included in all
|
1706
|
+
copies or substantial portions of the Software.
|
1707
|
+
|
1708
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1709
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1710
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1711
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1712
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1713
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1714
|
+
SOFTWARE.
|
1715
|
+
|
1716
|
+
|
1709
1717
|
================================================================================
|
1710
1718
|
async-stream LICENSE
|
1711
1719
|
================================================================================
|
@@ -24466,33 +24474,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
24466
24474
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24467
24475
|
DEALINGS IN THE SOFTWARE.
|
24468
24476
|
|
24469
|
-
================================================================================
|
24470
|
-
planus LICENSE-MIT
|
24471
|
-
================================================================================
|
24472
|
-
|
24473
|
-
MIT License
|
24474
|
-
|
24475
|
-
Copyright (c) 2021 The Planus Project Developers
|
24476
|
-
|
24477
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
24478
|
-
of this software and associated documentation files (the "Software"), to deal
|
24479
|
-
in the Software without restriction, including without limitation the rights
|
24480
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
24481
|
-
copies of the Software, and to permit persons to whom the Software is
|
24482
|
-
furnished to do so, subject to the following conditions:
|
24483
|
-
|
24484
|
-
The above copyright notice and this permission notice shall be included in all
|
24485
|
-
copies or substantial portions of the Software.
|
24486
|
-
|
24487
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
24488
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
24489
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24490
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24491
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24492
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
24493
|
-
SOFTWARE.
|
24494
|
-
|
24495
|
-
|
24496
24477
|
================================================================================
|
24497
24478
|
planus LICENSE-APACHE
|
24498
24479
|
================================================================================
|
@@ -24675,11 +24656,39 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
24675
24656
|
END OF TERMS AND CONDITIONS
|
24676
24657
|
|
24677
24658
|
|
24659
|
+
================================================================================
|
24660
|
+
planus LICENSE-MIT
|
24661
|
+
================================================================================
|
24662
|
+
|
24663
|
+
MIT License
|
24664
|
+
|
24665
|
+
Copyright (c) 2021 The Planus Project Developers
|
24666
|
+
|
24667
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
24668
|
+
of this software and associated documentation files (the "Software"), to deal
|
24669
|
+
in the Software without restriction, including without limitation the rights
|
24670
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
24671
|
+
copies of the Software, and to permit persons to whom the Software is
|
24672
|
+
furnished to do so, subject to the following conditions:
|
24673
|
+
|
24674
|
+
The above copyright notice and this permission notice shall be included in all
|
24675
|
+
copies or substantial portions of the Software.
|
24676
|
+
|
24677
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
24678
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
24679
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24680
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24681
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24682
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
24683
|
+
SOFTWARE.
|
24684
|
+
|
24685
|
+
|
24678
24686
|
================================================================================
|
24679
24687
|
polars LICENSE
|
24680
24688
|
================================================================================
|
24681
24689
|
|
24682
24690
|
Copyright (c) 2020 Ritchie Vink
|
24691
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
24683
24692
|
|
24684
24693
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
24685
24694
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25323,6 +25332,7 @@ polars-compute LICENSE
|
|
25323
25332
|
================================================================================
|
25324
25333
|
|
25325
25334
|
Copyright (c) 2020 Ritchie Vink
|
25335
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25326
25336
|
|
25327
25337
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25328
25338
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25347,6 +25357,7 @@ polars-core LICENSE
|
|
25347
25357
|
================================================================================
|
25348
25358
|
|
25349
25359
|
Copyright (c) 2020 Ritchie Vink
|
25360
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25350
25361
|
|
25351
25362
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25352
25363
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25371,6 +25382,32 @@ polars-error LICENSE
|
|
25371
25382
|
================================================================================
|
25372
25383
|
|
25373
25384
|
Copyright (c) 2020 Ritchie Vink
|
25385
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25386
|
+
|
25387
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25388
|
+
of this software and associated documentation files (the "Software"), to deal
|
25389
|
+
in the Software without restriction, including without limitation the rights
|
25390
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
25391
|
+
copies of the Software, and to permit persons to whom the Software is
|
25392
|
+
furnished to do so, subject to the following conditions:
|
25393
|
+
|
25394
|
+
The above copyright notice and this permission notice shall be included in all
|
25395
|
+
copies or substantial portions of the Software.
|
25396
|
+
|
25397
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
25398
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
25399
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
25400
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25401
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25402
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25403
|
+
SOFTWARE.
|
25404
|
+
|
25405
|
+
================================================================================
|
25406
|
+
polars-expr LICENSE
|
25407
|
+
================================================================================
|
25408
|
+
|
25409
|
+
Copyright (c) 2020 Ritchie Vink
|
25410
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25374
25411
|
|
25375
25412
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25376
25413
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25395,6 +25432,7 @@ polars-io LICENSE
|
|
25395
25432
|
================================================================================
|
25396
25433
|
|
25397
25434
|
Copyright (c) 2020 Ritchie Vink
|
25435
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25398
25436
|
|
25399
25437
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25400
25438
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25419,6 +25457,7 @@ polars-json LICENSE
|
|
25419
25457
|
================================================================================
|
25420
25458
|
|
25421
25459
|
Copyright (c) 2020 Ritchie Vink
|
25460
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25422
25461
|
|
25423
25462
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25424
25463
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25443,6 +25482,7 @@ polars-lazy LICENSE
|
|
25443
25482
|
================================================================================
|
25444
25483
|
|
25445
25484
|
Copyright (c) 2020 Ritchie Vink
|
25485
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25446
25486
|
|
25447
25487
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25448
25488
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25467,6 +25507,7 @@ polars-ops LICENSE
|
|
25467
25507
|
================================================================================
|
25468
25508
|
|
25469
25509
|
Copyright (c) 2020 Ritchie Vink
|
25510
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25470
25511
|
|
25471
25512
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25472
25513
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25692,6 +25733,7 @@ polars-pipe LICENSE
|
|
25692
25733
|
================================================================================
|
25693
25734
|
|
25694
25735
|
Copyright (c) 2020 Ritchie Vink
|
25736
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25695
25737
|
|
25696
25738
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25697
25739
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25716,6 +25758,7 @@ polars-plan LICENSE
|
|
25716
25758
|
================================================================================
|
25717
25759
|
|
25718
25760
|
Copyright (c) 2020 Ritchie Vink
|
25761
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25719
25762
|
|
25720
25763
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25721
25764
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25740,6 +25783,7 @@ polars-row LICENSE
|
|
25740
25783
|
================================================================================
|
25741
25784
|
|
25742
25785
|
Copyright (c) 2020 Ritchie Vink
|
25786
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25743
25787
|
|
25744
25788
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25745
25789
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25764,6 +25808,7 @@ polars-sql LICENSE
|
|
25764
25808
|
================================================================================
|
25765
25809
|
|
25766
25810
|
Copyright (c) 2020 Ritchie Vink
|
25811
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25767
25812
|
|
25768
25813
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25769
25814
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25788,6 +25833,7 @@ polars-time LICENSE
|
|
25788
25833
|
================================================================================
|
25789
25834
|
|
25790
25835
|
Copyright (c) 2020 Ritchie Vink
|
25836
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25791
25837
|
|
25792
25838
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25793
25839
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -25812,6 +25858,7 @@ polars-utils LICENSE
|
|
25812
25858
|
================================================================================
|
25813
25859
|
|
25814
25860
|
Copyright (c) 2020 Ritchie Vink
|
25861
|
+
Some portions Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
25815
25862
|
|
25816
25863
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
25817
25864
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -34779,7 +34826,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
34779
34826
|
SOFTWARE.
|
34780
34827
|
|
34781
34828
|
================================================================================
|
34782
|
-
strum_macros LICENSE
|
34829
|
+
strum_macros v0.25.3 LICENSE
|
34830
|
+
================================================================================
|
34831
|
+
|
34832
|
+
MIT License
|
34833
|
+
|
34834
|
+
Copyright (c) 2019 Peter Glotfelty
|
34835
|
+
|
34836
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
34837
|
+
of this software and associated documentation files (the "Software"), to deal
|
34838
|
+
in the Software without restriction, including without limitation the rights
|
34839
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
34840
|
+
copies of the Software, and to permit persons to whom the Software is
|
34841
|
+
furnished to do so, subject to the following conditions:
|
34842
|
+
|
34843
|
+
The above copyright notice and this permission notice shall be included in all
|
34844
|
+
copies or substantial portions of the Software.
|
34845
|
+
|
34846
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
34847
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
34848
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
34849
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
34850
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
34851
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
34852
|
+
SOFTWARE.
|
34853
|
+
|
34854
|
+
================================================================================
|
34855
|
+
strum_macros v0.26.2 LICENSE
|
34783
34856
|
================================================================================
|
34784
34857
|
|
34785
34858
|
MIT License
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# Polars
|
1
|
+
# Ruby Polars
|
2
2
|
|
3
3
|
:fire: Blazingly fast DataFrames for Ruby, powered by [Polars](https://github.com/pola-rs/polars)
|
4
4
|
|
5
|
-
[![Build Status](https://github.com/ankane/polars
|
5
|
+
[![Build Status](https://github.com/ankane/ruby-polars/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/ruby-polars/actions)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -420,16 +420,16 @@ View the [changelog](CHANGELOG.md)
|
|
420
420
|
|
421
421
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
422
422
|
|
423
|
-
- [Report bugs](https://github.com/ankane/polars
|
424
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/polars
|
423
|
+
- [Report bugs](https://github.com/ankane/ruby-polars/issues)
|
424
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/ruby-polars/pulls)
|
425
425
|
- Write, clarify, or fix documentation
|
426
426
|
- Suggest or add new features
|
427
427
|
|
428
428
|
To get started with development:
|
429
429
|
|
430
430
|
```sh
|
431
|
-
git clone https://github.com/ankane/polars
|
432
|
-
cd polars
|
431
|
+
git clone https://github.com/ankane/ruby-polars.git
|
432
|
+
cd ruby-polars
|
433
433
|
bundle install
|
434
434
|
bundle exec rake compile
|
435
435
|
bundle exec rake test
|
Binary file
|
Binary file
|
Binary file
|
@@ -13,6 +13,7 @@ module Polars
|
|
13
13
|
skip_rows: 0,
|
14
14
|
dtypes: nil,
|
15
15
|
null_values: nil,
|
16
|
+
missing_utf8_is_empty_string: false,
|
16
17
|
ignore_errors: false,
|
17
18
|
parse_dates: false,
|
18
19
|
n_threads: nil,
|
@@ -28,10 +29,12 @@ module Polars
|
|
28
29
|
sample_size: 1024,
|
29
30
|
eol_char: "\n",
|
30
31
|
new_columns: nil,
|
31
|
-
|
32
|
+
raise_if_empty: true,
|
33
|
+
truncate_ragged_lines: false,
|
34
|
+
decimal_comma: false
|
32
35
|
)
|
33
36
|
if Utils.pathlike?(file)
|
34
|
-
path = Utils.
|
37
|
+
path = Utils.normalize_filepath(file)
|
35
38
|
end
|
36
39
|
|
37
40
|
dtype_list = nil
|
@@ -72,12 +75,15 @@ module Polars
|
|
72
75
|
comment_char,
|
73
76
|
quote_char,
|
74
77
|
processed_null_values,
|
78
|
+
missing_utf8_is_empty_string,
|
75
79
|
parse_dates,
|
76
80
|
skip_rows_after_header,
|
77
81
|
Utils._prepare_row_count_args(row_count_name, row_count_offset),
|
78
82
|
sample_size,
|
79
83
|
eol_char,
|
80
|
-
|
84
|
+
raise_if_empty,
|
85
|
+
truncate_ragged_lines,
|
86
|
+
decimal_comma
|
81
87
|
)
|
82
88
|
self.new_columns = new_columns
|
83
89
|
end
|
data/lib/polars/convert.rb
CHANGED
@@ -27,7 +27,12 @@ module Polars
|
|
27
27
|
# # │ 2 ┆ 4 │
|
28
28
|
# # └─────┴─────┘
|
29
29
|
def from_hash(data, schema: nil, columns: nil)
|
30
|
-
|
30
|
+
Utils.wrap_df(
|
31
|
+
DataFrame.hash_to_rbdf(
|
32
|
+
data,
|
33
|
+
schema: schema || columns
|
34
|
+
)
|
35
|
+
)
|
31
36
|
end
|
32
37
|
|
33
38
|
# Construct a DataFrame from a sequence of dictionaries. This operation clones data.
|