ef3b1f7a4d88b8f869afeb10184a7f437f4d764f,bokeh/charts/tests/test_data_adapter.py,TestDataAdapter,test_pandas,#TestDataAdapter#,56

Before Change


        // TODO: THIS SHOULD BE FIXED..
        //self.assertEqual(da.values(), list(self._values.values()))
        self.assertEqual(da.columns, ["first", "second", "third"])
        self.assertEqual(da.keys(), ["first", "second", "third"])
        // We expect data adapter index to be the same as the underlying pandas
        // object and not the default created by DataAdapter
        self.assertEqual(da.index, [0, 1, 2])

After Change


        assert len(ds.index) == 4

    def test_pandas(self):
        ds = ChartDataSource.from_data(self._pd_data)
        assert len(ds.columns) == 2
        assert len(ds.index) == 4

        ds = ChartDataSource(self._pd_data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: bokeh/bokeh
Commit Name: ef3b1f7a4d88b8f869afeb10184a7f437f4d764f
Time: 2015-08-12
Author: nroth@dealnews.com
File Name: bokeh/charts/tests/test_data_adapter.py
Class Name: TestDataAdapter
Method Name: test_pandas


Project Name: bokeh/bokeh
Commit Name: ef3b1f7a4d88b8f869afeb10184a7f437f4d764f
Time: 2015-08-12
Author: nroth@dealnews.com
File Name: bokeh/charts/tests/test_data_adapter.py
Class Name: TestDataAdapter
Method Name: test_array


Project Name: bokeh/bokeh
Commit Name: ef3b1f7a4d88b8f869afeb10184a7f437f4d764f
Time: 2015-08-12
Author: nroth@dealnews.com
File Name: bokeh/charts/tests/test_data_adapter.py
Class Name: TestDataAdapter
Method Name: test_list