A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/wq/django-rest-pandas/issues/13 below:

get_dataframe() crashes if 'id' is not included in ModelSerializer fields · Issue #13 · wq/django-rest-pandas · GitHub

See http://paste.ubuntu.com/10862242/.

Currently the only way to get around this (short of adding id back to the included fields) is to subclass PandasSerializer and override get_index() to ensure it returns None (or any included field).

A better solution would be to have the default get_index() check for the id field before using it as the index, or to make it return None by default and always require it to be overridden for users that want an index to be set on their DataFrame.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4