API: Harmonize dtype for index levels for Series.sparse.from_coo by topper-123 · Pull Request #50926 · pandas-dev/pandas (original) (raw)
Currently the levels of the index the sparse series has different dtype (int32 or int64), depending on if the dense_index
is true or False. This PR makes the dtype to be always int32, the same as the row/col attributes of the scipy coo_matrix
.
See also discussion here: #49560 (comment).