Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not able to get uint64_t* for np.datetime64 #1970

Open
vasica38 opened this issue Oct 28, 2019 · 0 comments
Open

I am not able to get uint64_t* for np.datetime64 #1970

vasica38 opened this issue Oct 28, 2019 · 0 comments

Comments

@vasica38
Copy link

the error: "cannot convert value dtype('<M8[ns]') to dtype(uint64t)"

code example:

auto arr_value = py::cast<py::array_t<std::uint64_t, py::array::c_style>>(df["datetime_column].attr("to_numpy")());
std::uint64_t* pointer = static_cast<std::uint64_t*>(arr_value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant