Skip to content

Commit

Permalink
Fix output type of multiquantile
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Aug 9, 2017
1 parent d9a14de commit 05ab434
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ibis/expr/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ class Quantile(Reduction):
'midpoint', 'nearest'],
name='interpolation',
default='linear')]

output_type = rules.scalar_output(_coerce_integer_to_double_type)


Expand All @@ -740,6 +741,9 @@ class MultiQuantile(Quantile):
name='interpolation',
default='linear')]

def output_type(self):
return dt.Array(_coerce_integer_to_double_type(self)).scalar_type()


class VarianceBase(Reduction):

Expand Down

0 comments on commit 05ab434

Please sign in to comment.