Skip to content

Commit 8aa8c0d

Browse files
MarcoGorelliMarcoGorelli
authored andcommitted
Add polars
https://www.pola.rs/ This one's well good, and is growing in popularity
1 parent b1d1573 commit 8aa8c0d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ RUN pip install pysal \
190190
seaborn python-dateutil dask python-igraph \
191191
pyyaml joblib husl geopy mne pyshp \
192192
pandas \
193+
polars \
193194
flax && \
194195
# Install h2o from source.
195196
# Use `conda install -c h2oai h2o` once Python 3.7 version is released to conda.

tests/test_polars.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import unittest
2+
3+
import polars as pl
4+
5+
class TestPolars(unittest.TestCase):
6+
def test_read_csv(self):
7+
data = pl.read_csv("/input/tests/data/train.csv")
8+
9+
self.assertEqual(100, len(data))
10+

0 commit comments

Comments
 (0)