diff options
author | Javi Merino <javi.merino@arm.com> | 2016-04-27 10:57:41 +0100 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2016-04-28 14:53:27 +0100 |
commit | aa4bece3adc7f37b8121c84f2515ab2300c132f9 (patch) | |
tree | 455e690aa7a10a8c7b3bcbd72b91f8d86f7bd2bb /tests/test_plotter.py | |
parent | 90b588aeb958af7f6ccf587226958f2e6b8b81d1 (diff) | |
download | trappy-aa4bece3adc7f37b8121c84f2515ab2300c132f9.tar.gz |
ILinePlot: don't call data_frame what's just a python dict
Since the dawn of time we have a "data_frame" variable in ILinePlot that
is actually defined as a pd.Series() but it's acting as a dict. Rename
it and turn the pd.Series into a dict, as it is simpler and it really is
what this variable moves around.
Diffstat (limited to 'tests/test_plotter.py')
-rw-r--r-- | tests/test_plotter.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_plotter.py b/tests/test_plotter.py index 8a83a09..a2a17f5 100644 --- a/tests/test_plotter.py +++ b/tests/test_plotter.py @@ -269,9 +269,7 @@ class TestILinePlotter(unittest.TestCase): dfr = pd.DataFrame([0, 1, 2, 3], columns=["a"]) iplot = trappy.ILinePlot(dfr, column=["a"]) - s = pd.Series() - s["s1"] = s1 - s["s2"] = s2 + s = {"s1": s1, "s2": s2} merged = iplot._fix_indexes(s) expected_index = index1 + index2 |