(objects: Iterable[Any])
| 1389 | |
| 1390 | |
| 1391 | def result_name(objects: Iterable[Any]) -> Any: |
| 1392 | # use the same naming heuristics as pandas: |
| 1393 | # https://github.com/blaze/blaze/issues/458#issuecomment-51936356 |
| 1394 | names = {getattr(obj, "name", _DEFAULT_NAME) for obj in objects} |
| 1395 | names.discard(_DEFAULT_NAME) |
| 1396 | if len(names) == 1: |
| 1397 | (name,) = names |
| 1398 | else: |
| 1399 | name = None |
| 1400 | return name |
| 1401 | |
| 1402 | |
| 1403 | def _get_func_args(func, param_names): |
searching dependent graphs…