Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/12135#discussion_r60029909
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -1207,8 +1222,11 @@ def approxQuantile(self, col, probabilities,
relativeError):
raise ValueError("relativeError should be numerical (float,
int, long) >= 0.")
relativeError = float(relativeError)
- jaq = self._jdf.stat().approxQuantile(col, probabilities,
relativeError)
- return list(jaq)
+ jaqs = self._jdf.stat().approxQuantileMultiCols(col,
probabilities, relativeError)
--- End diff --
You call the mult-columns version anyway no matter your input is a string
or a list. If you like to do so, then the one column version of python api is
not needed anymore.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]