Spaces:
Sleeping
Sleeping
updating section header - A large collection of built-in APIs
Browse filesCo-authored-by: Akshay Agrawal <[email protected]>
- polars/01_why_polars.py +1 -1
polars/01_why_polars.py
CHANGED
@@ -140,7 +140,7 @@ def _(df_pl):
|
|
140 |
def _(mo):
|
141 |
mo.md(
|
142 |
"""
|
143 |
-
|
144 |
|
145 |
Polars boasts an **extremely expressive API**, enabling you to perform virtually any operation using built-in methods. In contrast, Pandas often requires more complex operations to be handled using the `apply` method with a lambda function. The issue with `apply` is that it processes rows sequentially, looping through the DataFrame one row at a time, which can be inefficient. By leveraging Polars' built-in methods, you can operate on entire columns at once, unlocking the power of **SIMD (Single Instruction, Multiple Data)** parallelism. This approach not only simplifies your code but also significantly enhances performance.
|
146 |
"""
|
|
|
140 |
def _(mo):
|
141 |
mo.md(
|
142 |
"""
|
143 |
+
### A large collection of built-in APIs
|
144 |
|
145 |
Polars boasts an **extremely expressive API**, enabling you to perform virtually any operation using built-in methods. In contrast, Pandas often requires more complex operations to be handled using the `apply` method with a lambda function. The issue with `apply` is that it processes rows sequentially, looping through the DataFrame one row at a time, which can be inefficient. By leveraging Polars' built-in methods, you can operate on entire columns at once, unlocking the power of **SIMD (Single Instruction, Multiple Data)** parallelism. This approach not only simplifies your code but also significantly enhances performance.
|
146 |
"""
|