A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/9037 below:

json should process data column-by-column (and not use .values) · Issue #9037 · pandas-dev/pandas · GitHub

xref #9027

So to_json first converts all the a DataFrame by using .values. This converts everything to object dtype (if its a mixed frame) and is pretty expensive perf wise.

If you do this column by column you get excellent perf (and tiny bit more complexity in the code).

cc @Komnomnomnom
@cpcloud


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