Opened 9 years ago
Closed 9 years ago
#24909 closed New feature (wontfix)
Numpy array compatibility in ArrayField
Reported by: | José Antonio Perdiguero | Owned by: | |
---|---|---|---|
Component: | contrib.postgres | Version: | 1.8 |
Severity: | Normal | Keywords: | numpy, array, arrayfield, postgresql |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Due to ArrayField introduced in Django 1.8 is intended to work with lists and tuples, could be interesting if there is a subclass of ArrayField that works with numpy array that has the same nature of lists and tuples.
Git branch: https://github.com/PeRDy/django/tree/numpyarrayfield
Note:
See TracTickets
for help on using tickets.
This is a prime candidate for an external package. The example code isn't really that invasive, so it could easily be done that way.
Also, I can imagine that there are other numpy objects which could be stored in postgres or other dbs. I think a django-numpy package would be awesome, but is too specific use case for core.