From df0e7484dc25fda514646cebbf70cfa92f908a5f Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 16 Aug 2016 14:54:00 -0400 Subject: [PATCH] MAINT: Use sort_values instead of sort(). --- zipline/assets/asset_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/assets/asset_writer.py b/zipline/assets/asset_writer.py index 17d61b2f85..d0cbe01bc0 100644 --- a/zipline/assets/asset_writer.py +++ b/zipline/assets/asset_writer.py @@ -187,7 +187,7 @@ def _generate_output_dataframe(data_subset, defaults): def _check_asset_group(group): - row = group.sort('end_date').iloc[-1] + row = group.sort_values('end_date').iloc[-1] row.start_date = group.start_date.min() row.end_date = group.end_date.max() row.drop(list(symbol_columns), inplace=True)