Skip to content

Commit

Permalink
Pass numpy array to ECDF method
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Sep 4, 2024
1 parent a3fc85b commit 6bb0d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotnine/stats/stat_ecdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ def compute_group(cls, data, scales, **params):
if params["pad"]:
x = np.hstack([-np.inf, x, np.inf])

ecdf = ECDF(data["x"])(x)
ecdf = ECDF(data["x"].to_numpy())(x)
res = pd.DataFrame({"x": x, "ecdf": ecdf})
return res

0 comments on commit 6bb0d31

Please sign in to comment.