vanhooser commented on a change in pull request #26884: [SPARK-30257] [PySpark]
Add simpleString map
URL: https://github.com/apache/spark/pull/26884#discussion_r357983669
##########
File path: python/pyspark/sql/types.py
##########
@@ -1603,6 +1627,13 @@ def convert(self, obj, gateway_client):
t.setNanos(obj.microsecond * 1000)
return t
+
+def from_simple_string(simple_str):
Review comment:
No, the
[dtypes](https://github.com/vanhooser/spark/blob/patch-1/python/pyspark/sql/dataframe.py#L966)
method. This unwraps the struct for you and makes it easy to scan over a
schema.
`schema()` is useful for full manipulation but I personally find `dtypes`
used more often by my users. The simplicity right now is limited to schema ->
Python list of string descriptions, the reverse for string descriptions ->
schema is what’s added here.
----------------------------------------------------------------
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]