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