numpy / numpy/numpy

RFC deprecate numpy.matrix

Open
#31,060 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
32.8k
Forks
12.8k
Avg merge
1d 7h
Merged PRs (30d)
197

Description

It has been mentioned here and there, but I don't find any "official" document about it. Is there a plan to deprecate and finally remove numpy.matrix?

A clear plan would also help with the scipy.sparse transition from sparse matrices to sparse arrays, see https://github.com/scipy/scipy/issues/24802 and https://github.com/scikit-learn/scikit-learn/pull/31177 (in the sense when to remove sparse matrices at the latest).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the request in this issue and compare the linked SciPy issue #24802 and scikit-learn pull request #31177. Establish whether an official deprecation and removal timeline for numpy.matrix can be documented, including the implications for sparse-matrix transitions. Done means the plan and dependencies are clearly recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.