You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in py_call_impl(callable, dots$args, dots$keywords) : AttributeError: 'numpy.ndarray' object has no attribute 'microsecond'
Looks possibly related to this issue, where POSIXct time is getting automatically converted by reticulate to numpy datetim64 objects rather than Python datetime objects, which is what is expected by the underlying Python SDK filter methods for TabularDatasets.
The underlying Python function is expected a datetime.datetime object whereas reticulate converts R date-time objects to either datetime.date or np.datetime64. To bypass this, you can create a native Python datetime.datetime object with reticulate and pass that to filter_dataset_before_time.
For the
filter_dataset_before_time
method,the following error gets thrown:
Looks possibly related to this issue, where POSIXct time is getting automatically converted by reticulate to numpy
datetim64
objects rather than Pythondatetime
objects, which is what is expected by the underlying Python SDK filter methods for TabularDatasets.Methods to fix:
The text was updated successfully, but these errors were encountered: