itholic commented on PR #38033:
URL: https://github.com/apache/spark/pull/38033#issuecomment-1262996806

   > Shall we follow pandas to make `_kind` a `property`?
   
   We cannot access to the value of  `_kind` without instantiate when it's a 
property as below:
   
   ```python
   >>> AreaPlot._kind
   <property object at 0x7fe520d749a0>
   ```
   
   It returns the property object, but we want the name of plot in string 
format as below:
   
   ```python
   >>> AreaPlot._kind
   'area'
   ```
   
   Since we inherit and use the Pandas object, I think that we should 
explicitly assign the class name to the class member instead of implementing 
them in the same 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to