related: #8509 https://github.com/pydata/pandas/pull/5283 https://github.com/numpy/numpy/issues/4685