rename expr to dataset in type error

This commit is contained in:
llllllllll
2015-10-19 16:35:03 -04:00
parent 1e05a1c4ae
commit f897bcdfed
+3 -3
View File
@@ -513,9 +513,9 @@ def from_blaze(expr,
measure = expr.dshape.measure
if not isrecord(measure) or AD_FIELD_NAME not in measure.names:
raise TypeError(
"expr must be a collection of records with at least an '{ad}'"
" field. Fields provided: '{fields}'\nhint: maybe you need to use "
" `relabel` to change your field names".format(
"The dataset must be a collection of records with at least an"
" '{ad}' field. Fields provided: '{fields}'\nhint: maybe you need"
" to use `relabel` to change your field names".format(
ad=AD_FIELD_NAME,
fields=measure,
),