| 3142 | return list(o) |
| 3143 | |
| 3144 | def map(self, func, na_action=None, meta=None): |
| 3145 | if not PANDAS_GE_210: |
| 3146 | raise NotImplementedError( |
| 3147 | f"DataFrame.map requires pandas>=2.1.0, but pandas={PANDAS_VERSION} is " |
| 3148 | "installed." |
| 3149 | ) |
| 3150 | if meta is None: |
| 3151 | meta = expr.emulate(M.map, self, func, na_action=na_action, udf=True) |
| 3152 | warnings.warn(meta_warning(meta, method="map")) |
| 3153 | return new_collection(expr.Map(self, arg=func, na_action=na_action, meta=meta)) |
| 3154 | |
| 3155 | @derived_from(pd.DataFrame) |
| 3156 | def nlargest(self, n=5, columns=None, split_every=None): |