Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/22349#discussion_r215593840 --- Diff: python/pyspark/ml/image.py --- @@ -20,6 +20,9 @@ An attribute of this module that contains the instance of :class:`_ImageSchema`. +.. note:: Deprecated in 2.4.0. Use `spark.read.format("image").load(path)` instead and --- End diff -- FYI, that datasource wouldn't be able to replace `toNDArray` and `toImage` which require numpy. Might be better leave a note that it needs manual conversion with NumPy API for both.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org