Skip to content

replace assign with []= syntax to reduce copying#76

Open
leifwalsh wants to merge 1 commit intomasterfrom
topandas-time-conversion-memory-usage
Open

replace assign with []= syntax to reduce copying#76
leifwalsh wants to merge 1 commit intomasterfrom
topandas-time-conversion-memory-usage

Conversation

@leifwalsh
Copy link
Contributor

pandas's df.assign(...) copies the entire dataframe, while using df[col] = ... syntax avoids copying everything. This reduces memory overhead significantly in calls to TimeSeriesDataFrame.toPandas().

pandas's df.assign(...) copies the entire dataframe, while using df[col] = ... syntax avoids copying everything. This reduces memory overhead significantly in calls to TimeSeriesDataFrame.toPandas().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant