Spaces:
Sleeping
Sleeping
updated textual description under introduction
Browse filesCo-authored-by: Akshay Agrawal <[email protected]>
- polars/01_why_polars.py +7 -1
polars/01_why_polars.py
CHANGED
@@ -25,7 +25,13 @@ def _(mo):
|
|
25 |
"""
|
26 |
# An introduction to Polars
|
27 |
|
28 |
-
[Polars](https://pola.rs/)
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
Polars' performance is due to a number of factors, including its implementation and rust and its ability to perform operations in a parallelized and vectorized manner. It supports a wide range of data types, advanced query optimizations, and seamless integration with other Python libraries, making it a versatile tool for data scientists, engineers, and analysts. Additionally, Polars provides a lazy API for deferred execution, allowing users to optimize their workflows by chaining operations and executing them in a single pass.
|
31 |
|
|
|
25 |
"""
|
26 |
# An introduction to Polars
|
27 |
|
28 |
+
This notebook provides a birds-eye overview of [Polars](https://pola.rs/), a fast and user-friendly data manipulation library for Python, and compares it to alternatives like Pandas and PySpark.
|
29 |
+
|
30 |
+
Like Pandas and PySpark, the central data structure in Polars is **the DataFrame**, a tabular data structure consisting of named columns. For example, the next cell constructs a DataFrame that records the gender, age, and height in centimeters for a number of individuals.
|
31 |
+
|
32 |
+
<INSERT CODE CELL>
|
33 |
+
|
34 |
+
Unlike Python's earliest DataFrame library Pandas, Polars was designed with performance and usability in mind — Polars can scale to large datasets with ease while maintaining a simple and intuitive API.
|
35 |
|
36 |
Polars' performance is due to a number of factors, including its implementation and rust and its ability to perform operations in a parallelized and vectorized manner. It supports a wide range of data types, advanced query optimizations, and seamless integration with other Python libraries, making it a versatile tool for data scientists, engineers, and analysts. Additionally, Polars provides a lazy API for deferred execution, allowing users to optimize their workflows by chaining operations and executing them in a single pass.
|
37 |
|