How to import polars-lts-cpu correctly

Question:

I would like to use the python package polars-lts-cpu, since I am facing some hardware issues on a gitlab runner. How do I import this package in Python, i.e. what is the alias?

A simple import polars-lts-cpu yields a syntax error. The documentation does not give any hints or suggestions.

Any help would be appreciated.

Asked By: Tonelock

||

Answers:

Usage is exactly the same as with the default polars package. So you import polars, not polars-lts-cpu.

me:~: $ pip install -U polars-lts-cpu
Collecting polars-lts-cpu
  Downloading polars_lts_cpu-0.15.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.6 MB)
     |████████████████████████████████| 14.6 MB 11.7 MB/s 
me:~: $ python -c "import polars as pl; print(pl.__version__)"
0.15.7
Answered By: ritchie46
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.