Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/20390#discussion_r163721973 --- Diff: python/pyspark/sql/dataframe.py --- @@ -1881,6 +1881,15 @@ def toDF(self, *cols): jdf = self._jdf.toDF(self._jseq(cols)) return DataFrame(jdf, self.sql_ctx) + @since(2.3) + def colRegex(self, colName): + """ + Selects column based on the column name specified as a regex and return it + as :class:`Column`. + """ + jc = self._jdf.colRegex(colName) --- End diff -- Could we add a type check here too?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org