Skip to content

Commit 5aa55ad

Browse files
authored
note JSON kwarg options (see #15, #26) [skip ci]
1 parent 73e92fd commit 5aa55ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Format | Content Type | pandas DataFrame Function | Notes
5555
-------|--------------|---------------------------|--------
5656
CSV | `text/csv` | `to_csv()` |  
5757
TXT | `text/plain` | `to_csv()` | Useful for testing, as most browsers will download a CSV file instead of displaying it
58-
JSON | `application/json` | `to_json()` |  
58+
JSON | `application/json` | `to_json()` | [`date_format` and `orient`][to_json] can be provided in URL (e.g. `/path.json?orient=columns`)
5959
XLSX | `application/vnd.openxml...sheet` | `to_excel()` |  
6060
XLS | `application/vnd.ms-excel` | `to_excel()` |  
6161
PNG | `image/png` | `plot()` | Currently not very customizable, but a simple way to view the data as an image.
@@ -475,5 +475,6 @@ pandas.get('/data/boxplot.csv?group=year', function(data) {
475475
[serializers]: https://github.com/wq/django-rest-pandas/blob/master/rest_pandas/serializers.py
476476
[renderers]: https://github.com/wq/django-rest-pandas/blob/master/rest_pandas/renderers.py
477477
[wq/pandas.js]: http://wq.io/docs/pandas-js
478+
[to_json]: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_json.html
478479
[unstacks]: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.unstack.html
479480
[boxplot_stats]: http://matplotlib.org/api/cbook_api.html#matplotlib.cbook.boxplot_stats

0 commit comments

Comments
 (0)