| 3106 | return list(o) |
| 3107 | |
| 3108 | def map(self, func, na_action=None, meta=None): |
| 3109 | if not PANDAS_GE_210: |
| 3110 | raise NotImplementedError( |
| 3111 | f"DataFrame.map requires pandas>=2.1.0, but pandas={PANDAS_VERSION} is " |
| 3112 | "installed." |
| 3113 | ) |
| 3114 | if meta is None: |
| 3115 | meta = expr.emulate(M.map, self, func, na_action=na_action, udf=True) |
| 3116 | warnings.warn(meta_warning(meta, method="map")) |
| 3117 | return new_collection(expr.Map(self, arg=func, na_action=na_action, meta=meta)) |
| 3118 | |
| 3119 | @derived_from(pd.DataFrame) |
| 3120 | def nlargest(self, n=5, columns=None, split_every=None): |