You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/03/04 02:40:48 UTC

[GitHub] [spark] HyukjinKwon commented on issue #23882: [SPARK-26979][PySpark] Add missing column name support for some SQL functions

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org