@@ -92,7 +92,7 @@ that cannot be achieved with built-in pandas functions.
9292When to use: :meth: `DataFrame.apply ` is suitable when no alternative vectorized method is available, but consider
9393optimizing performance with vectorized operations wherever possible.
9494
95- Examples of usage can be found :ref: ` here < api.dataframe. apply> `.
95+ Examples of usage can be found :meth: ` ~DataFrame. apply `.
9696
9797:meth: `DataFrame.agg `
9898~~~~~~~~~~~~~~~~~~~~~
@@ -103,7 +103,7 @@ specifically designed for aggregation operations.
103103When to use: Use :meth: `DataFrame.agg ` for performing aggregations like sum, mean, or custom aggregation
104104functions across groups.
105105
106- Examples of usage can be found :ref: ` here < api.dataframe. agg> `.
106+ Examples of usage can be found :meth: ` ~DataFrame. agg `.
107107
108108:meth: `DataFrame.transform `
109109~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -113,7 +113,7 @@ It’s generally faster than apply because it can take advantage of pandas' inte
113113
114114When to use: When you need to perform element-wise transformations that retain the original structure of the DataFrame.
115115
116- Documentation can be found :ref: ` here < api.dataframe. transform> `.
116+ Documentation can be found :meth: ` ~DataFrame. transform `.
117117
118118Attempting to use common aggregation functions such as ``mean `` or ``sum `` will result in
119119values being broadcasted to the original dimensions:
@@ -168,6 +168,8 @@ When to use: Use :meth:`DataFrame.filter` when you want to use a UDF to create a
168168 Since filter does not directly accept a UDF, you have to apply the UDF indirectly,
169169such as by using list comprehensions.
170170
171+ Documentation can be found :meth: `~DataFrame.filter `.
172+
171173:meth: `DataFrame.map `
172174~~~~~~~~~~~~~~~~~~~~~
173175
@@ -176,7 +178,7 @@ for this purpose compared to :meth:`DataFrame.apply` because of its better perfo
176178
177179When to use: Use map for applying element-wise UDFs to DataFrames or Series.
178180
179- Documentation can be found :ref: ` here < api.dataframe. map> `.
181+ Documentation can be found :meth: ` ~DataFrame. map `.
180182
181183:meth: `DataFrame.pipe `
182184~~~~~~~~~~~~~~~~~~~~~~
@@ -186,7 +188,7 @@ It is a helpful tool for organizing complex data processing workflows.
186188
187189When to use: Use pipe when you need to create a pipeline of transformations and want to keep the code readable and maintainable.
188190
189- Documentation can be found :ref: ` here < api.dataframe. pipe> `.
191+ Documentation can be found :meth: ` ~DataFrame. pipe `.
190192
191193
192194Best Practices
0 commit comments