Apply a function using args / kwargs. If arguments contain dd.DataFrame / dd.Series, using internal cache (``_meta``) for calculation
(func, *args, udf=False, **kwargs)
| 4104 | |
| 4105 | |
| 4106 | def emulate(func, *args, udf=False, **kwargs): |
| 4107 | """ |
| 4108 | Apply a function using args / kwargs. If arguments contain dd.DataFrame / |
| 4109 | dd.Series, using internal cache (``_meta``) for calculation |
| 4110 | """ |
| 4111 | with raise_on_meta_error(funcname(func), udf=udf): |
| 4112 | return func(*_extract_meta(args, True), **_extract_meta(kwargs, True)) |
| 4113 | |
| 4114 | |
| 4115 | def _get_meta_map_partitions(args, dfs, func, kwargs, meta, parent_meta): |
no test coverage detected