Github user billhao commented on the pull request:

    https://github.com/apache/spark/pull/6339#issuecomment-128125172
  
    I built the master branch on my cluster yesterday and was trying to use the 
feature added in this pull request in PySpark. But I got an error message from 
the following code. Is there anything else I need to do to use this in PySpark? 
Or am I using it in a wrong way?
    
    labelIndexer = StringIndexer(inputCol="labelStr", outputCol="label")
    indexer = labelIndexer.fit(df)
    indexer.invert(inputCol="prediction", outputCol="predictionStr")
    
    AttributeError: 'StringIndexer' object has no attribute 'invert'
    
    Not sure if this is the best place for the question. Let me know if there 
is a best place to ask this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to