API: allow casting datetime64 to int64? (original) (raw)

The original deprecation happened in #38544

This comment is from #22384 (comment), moving it here to a separate issue.

But, on the specific datetime -> integer deprecation:

There is then some follow-up discussion in the issue below #22384 (comment)

I would personally propose to keep allowing astype() for datetime64 -> int64, and not steer users to view() for this.

cc @jbrockmendel