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
165
165
df_filtered = df[[col for col in df.columns if is_long_name(col)]]
166
166
print (df_filtered)
167
167
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,
169
169
such as by using list comprehensions.
170
170
171
171
:meth: `DataFrame.map `
@@ -229,4 +229,4 @@ with UDFs because they leverage highly optimized C functions
229
229
via NumPy to process entire arrays at once. This approach avoids the overhead of looping
230
230
through rows in Python and making separate function calls for each row, which is slow and
231
231
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.
You can’t perform that action at this time.
0 commit comments