Spaces:
Sleeping
Sleeping
updated text under - A large collection of build-in APIs
Browse filesCo-authored-by: Akshay Agrawal <[email protected]>
- polars/01_why_polars.py +1 -1
polars/01_why_polars.py
CHANGED
@@ -142,7 +142,7 @@ def _(mo):
|
|
142 |
"""
|
143 |
### A large collection of built-in APIs
|
144 |
|
145 |
-
Polars
|
146 |
"""
|
147 |
)
|
148 |
return
|
|
|
142 |
"""
|
143 |
### A large collection of built-in APIs
|
144 |
|
145 |
+
Polars has a comprehensive API that enables 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 improves performance.
|
146 |
"""
|
147 |
)
|
148 |
return
|