ef3b1f7a4d88b8f869afeb10184a7f437f4d764f,bokeh/charts/tests/test_data_adapter.py,TestDataAdapter,setUp,#TestDataAdapter#,32
Before Change
def setUp(self):
self._values = OrderedDict()
self._values["first"] = [2., 5., 3.]
self._values["second"] = [4., 1., 4.]
self._values["third"] = [6., 4., 3.]
def test_list(self):
values = list(self._values.values())
After Change
self._array_data = [np.array(item) for item in self._list_data]
self._dict_data = {"col1": self._list_data[0],
"col2": self._list_data[1]}
self._pd_data = pd.DataFrame(self._dict_data)
self._records_data = self._pd_data.to_dict(orient="records")
def test_list(self):
ds = ChartDataSource.from_data(*self._list_data)
assert len(ds.columns) == 2
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: setUp
Project Name: IndicoDataSolutions/finetune
Commit Name: 3052e961e54ead28c717b6bbf5c785946e727fa9
Time: 2019-06-20
Author: matthew.bayer@indico.io
File Name: finetune/input_pipeline.py
Class Name: BasePipeline
Method Name: get_target_input_fn
Project Name: IndicoDataSolutions/finetune
Commit Name: bb8cf918f0a6b0f63db15c2fd34f5d314ff51b02
Time: 2019-06-20
Author: matthew.bayer@indico.io
File Name: finetune/input_pipeline.py
Class Name: BasePipeline
Method Name: get_target_input_fn