Koushik Khan akshayka commited on
Commit
f2c1d1b
·
unverified ·
1 Parent(s): 1a5601d

updated text under - A large collection of build-in APIs

Browse files

Co-authored-by: Akshay Agrawal <[email protected]>

Files changed (1) hide show
  1. 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 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
  """
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