ded044ebee429e8e1b8dbd7e581bfb9634be7354,bokeh/charts/_properties.py,Dimension,data,#Dimension#,136
Before Change
if self._data.empty or self.selection is None:
return pd.Series(1)
else:
if not isinstance(self.selection, list):
select = [self.selection]
else:
select = self.selection
return self._data[select]
def set_data(self, data):
Builder must provide data so that builder has access to configuration metadata.
After Change
return pd.Series(1)
else:
// return special column type if available
if self.selection in list(special_columns.keys()) :
return special_columns[self.selection](self._data)
return self._data[self.selection]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: bokeh/bokeh
Commit Name: ded044ebee429e8e1b8dbd7e581bfb9634be7354
Time: 2015-09-08
Author: nroth@dealnews.com
File Name: bokeh/charts/_properties.py
Class Name: Dimension
Method Name: data
Project Name: has2k1/plotnine
Commit Name: 5ff2c70202a6e9854af60161b6e8ae174d386f8f
Time: 2015-05-18
Author: has2k1@gmail.com
File Name: ggplot/guides/guide_legend.py
Class Name: guide_legend
Method Name: train
Project Name: sahana/eden
Commit Name: a9dc3f6e92aa0204ecad749bcf72454a7135a6f9
Time: 2021-02-28
Author: dominic@nursix.org
File Name: modules/templates/RLP/notifications.py
Class Name: InlineNotifications
Method Name: __call__