Skip to content

Commit

Permalink
use _from_data
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Mar 21, 2022
1 parent f92a86b commit bca6179
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/cudf/cudf/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2766,8 +2766,10 @@ def quantile(
if return_scalar:
return result

return Series(
result, index=np_array_q if quant_index else None, name=self.name
return Series._from_data(
data={None: result},
index=as_index(np_array_q) if quant_index else None,
name=self.name,
)

@docutils.doc_describe()
Expand Down

0 comments on commit bca6179

Please sign in to comment.