Skip to content

Commit

Permalink
MAINT: Use sort_values instead of sort().
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Sanderson committed Aug 16, 2016
1 parent 15d7105 commit df0e748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipline/assets/asset_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df0e748

Please sign in to comment.