dev-resources.site
for different kinds of informations.
(Im)mutability of polars DataFrame
Published at
10/31/2024
Categories
polars
Author
patrykp
Categories
1 categories in total
polars
open
Author
7 person written this
patrykp
open
Hey guys, there is one thing that I don't understand in polars. Everybody says that polars dataframes are immutable. However I can perform these operations without changing id of the object:
import polars as pl
my_df = pl.DataFrame({"a": [1, 2, 3], "b": [2, 3, 4]})
print(id(my_df))
my_df[0, "a"] = 10
print(my_df)
print(id(my_df)) # it's the same id
The modified value is changed, however the id is the same. Why?
polars Article's
13 articles in total
Polars + Delta Lake: Azure Function vs. Laptop on Small Data
read article
(Im)mutability of polars DataFrame
currently reading
Accelerating Polars with RAPIDS cuDF
read article
Polars vs. Pandas A New Era of Dataframes in Python ?
read article
Using Polars/Tensorflow with NVIDIA GPU (CUDA), on Windows using WSL2
read article
¿Qué es más rápido y económico para convertir archivos en AWS: Polar o Pandas?
read article
Polars: Empowering Large-Scale Data Analysis in Python
read article
How moving from Pandas to Polars made me write better code without writing better code
read article
Stuff I Learned during Hanukkah of Data 2023
read article
Time Series Analysis with Polars
read article
Lightning-fast queries with Polars
read article
A Polars exploration into Kedro
read article
Tried Polars in Ruby
read article
Featured ones: