use DataFrames own functions to manipulate the Bittrex JSON

This commit is contained in:
Janne Sinivirta
2017-09-10 09:51:56 +03:00
parent 4069e73039
commit 8bf5f15125
2 changed files with 7 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ class TestAnalyze(unittest.TestCase):
def test_1_dataframe_has_correct_columns(self):
self.assertEqual(self.result.columns.tolist(),
['close', 'date', 'high', 'low', 'open', 'volume'])
['close', 'high', 'low', 'open', 'date', 'volume'])
def test_2_orders_by_date(self):
self.assertEqual(self.result['date'].tolist(),