File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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,
169169such as by using list comprehensions.
170170
171171:meth: `DataFrame.map `
@@ -229,4 +229,4 @@ with UDFs because they leverage highly optimized C functions
229229via NumPy to process entire arrays at once. This approach avoids the overhead of looping
230230through rows in Python and making separate function calls for each row, which is slow and
231231inefficient. 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.
You can’t perform that action at this time.
0 commit comments