Last active
October 24, 2024 09:18
-
-
Save juba/35020376fa7eb9001090dcaa8754c77d to your computer and use it in GitHub Desktop.
uv test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.12" | |
# dependencies = [ | |
# "numpy", | |
# "polars", | |
# ] | |
# /// | |
import numpy as np | |
import polars as pl | |
df = pl.DataFrame( | |
{ | |
"nrs": [1, 2, 3, None, 5], | |
"names": ["foo", "ham", "spam", "egg", None], | |
"random": np.random.rand(5), | |
"groups": ["A", "A", "B", "C", "B"], | |
} | |
) | |
print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment