477d91fafb5ecdc5e680ac70b32e9ea247a3be00,skbio/maths/stats/distance/base.py,CategoricalStats,_df_to_vector,#CategoricalStats#Any#Any#Any#,80
Before Change
raise ValueError("Column "%s" not in data frame." % column)
for id_ in distance_matrix.ids:
if id_ not in df[column]:
raise ValueError("Distance matrix ID "%s" not in data frame." %
id_)
grouping.append(df[column][id_])
return grouping
After Change
raise ValueError("Column "%s" not in data frame." % column)
grouping = df[column][list(distance_matrix.ids)]
if grouping.isnull().any():
raise ValueError("One or more IDs in the distance matrix are not "
"in the data frame.")
return grouping
def __call__(self, permutations=999):
Execute the statistical method.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: biocore/scikit-bio
Commit Name: 477d91fafb5ecdc5e680ac70b32e9ea247a3be00
Time: 2014-05-07
Author: jai.rideout@gmail.com
File Name: skbio/maths/stats/distance/base.py
Class Name: CategoricalStats
Method Name: _df_to_vector
Project Name: bokeh/bokeh
Commit Name: 5f6b5d3851d0b719f401eafbfc569420405d1ef3
Time: 2016-08-16
Author: canavandl@gmail.com
File Name: bokeh/models/formatters.py
Class Name: FuncTickFormatter
Method Name: from_py_func
Project Name: craffel/mir_eval
Commit Name: 3241912f4160c47e55e25f5812c8493d1f581fca
Time: 2014-04-23
Author: brm2132@columbia.edu
File Name: mir_eval/util.py
Class Name:
Method Name: validate_intervals