Apply a function using args / kwargs. If arguments contain dd.DataFrame / dd.Series, using internal cache (``_meta``) for calculation
(func, *args, udf=False, **kwargs)
| 4148 | |
| 4149 | |
| 4150 | def emulate(func, *args, udf=False, **kwargs): |
| 4151 | """ |
| 4152 | Apply a function using args / kwargs. If arguments contain dd.DataFrame / |
| 4153 | dd.Series, using internal cache (``_meta``) for calculation |
| 4154 | """ |
| 4155 | with raise_on_meta_error(funcname(func), udf=udf): |
| 4156 | return func(*_extract_meta(args, True), **_extract_meta(kwargs, True)) |
| 4157 | |
| 4158 | |
| 4159 | def _get_meta_map_partitions(args, dfs, func, kwargs, meta, parent_meta): |
no test coverage detected