(array)
| 736 | |
| 737 | |
| 738 | def _timedelta_to_seconds(array): |
| 739 | if isinstance(array, datetime.timedelta): |
| 740 | return array.total_seconds() * 1e6 |
| 741 | else: |
| 742 | return np.reshape([a.total_seconds() for a in array.ravel()], array.shape) * 1e6 |
| 743 | |
| 744 | |
| 745 | def py_timedelta_to_float(array, datetime_unit): |
no test coverage detected
searching dependent graphs…