Skip to content

Commit 214f0ac

Browse files
committed
precommit
1 parent 0d02d64 commit 214f0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/user_defined_functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ When to use: Use :meth:`DataFrame.filter` when you want to use a UDF to create a
165165
df_filtered = df[[col for col in df.columns if is_long_name(col)]]
166166
print(df_filtered)
167167
168-
Since filter does not direclty accept a UDF, you have to apply the UDF indirectly,
168+
Since filter does not directly accept a UDF, you have to apply the UDF indirectly,
169169
such as by using list comprehensions.
170170

171171
:meth:`DataFrame.map`
@@ -229,4 +229,4 @@ with UDFs because they leverage highly optimized C functions
229229
via NumPy to process entire arrays at once. This approach avoids the overhead of looping
230230
through rows in Python and making separate function calls for each row, which is slow and
231231
inefficient. Additionally, NumPy arrays benefit from memory efficiency and CPU-level
232-
optimizations, making vectorized operations the preferred choice whenever possible.
232+
optimizations, making vectorized operations the preferred choice whenever possible.

0 commit comments

Comments
 (0)