MAINT: Use sort_values() instead of sort().

pd.DataFrame.sort() is deprecated.
This commit is contained in:
Scott Sanderson
2016-09-20 17:12:07 -04:00
parent 874d2b51f1
commit b5fd0cdbfa
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ class EventIndexerTestCase(ZiplineTestCase):
@classmethod
def init_class_fixtures(cls):
super(EventIndexerTestCase, cls).init_class_fixtures()
cls.events = make_events(add_nulls=False).sort('event_date')
cls.events = make_events(add_nulls=False).sort_values('event_date')
cls.events.reset_index(inplace=True)
def test_previous_event_indexer(self):