HyukjinKwon commented on issue #23882: [SPARK-26979][PySpark] Add missing column name support for some SQL functions URL: https://github.com/apache/spark/pull/23882#issuecomment-469098846 Sorry for late response - I have been busy for non-working stuff for the last week (I flew to Korea and had to arrange some other stuff). re https://github.com/apache/spark/pull/23882#issuecomment-467047983 and https://github.com/apache/spark/pull/23882#issuecomment-467063994. This pattern is the same for Padnas usecase as well. PySpark tried to make the usecase like Pandas as well. It is useful in practice. ```python >>> a = pandas.DataFrame([{'a': 1}]) >>> a.a 0 1 Name: a, dtype: int64 >>> ``` It's short and easier to explicitly refers a column against a target dataframe. I agree with `df["col"]` is more reliable way.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
