You can use float("inf") as the upper bound and -float("inf") as the lower bound in the bins list. It will remove NaN values.
You can use float("inf") as the upper bound and -float("inf") as the lower bound in the bins list. It will remove NaN values.