xinrong-meng commented on PR #38033:
URL: https://github.com/apache/spark/pull/38033#issuecomment-1264042497
I was thinking something as below, in order to be consistent with pandas and
avoid the hardcoding
```
>>> class C:
... @property
... def _kind(self):
... return 'area'
...
>>> class D:
... pass
...
>>> class PS_C(C, D): # pandas-on-Spark class
... @property
... def _kind(self):
... return super()._kind
...
```
Then we may change `_plot_klass = {getattr(klass(), "_kind"): klass for
klass in _klasses}`
--
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]