Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Possible duplicate of How to change dataframe column names in pyspark? Commented Jul 17, 2018 at 8:40
  • I don't think so, there is explained how to replace it but I don't know how I can to add a string to my columns name, I get: AttributeError: can't set attribute. Commented Jul 17, 2018 at 8:46
  • look into option 2 or 3. It's exactly what you need. Commented Jul 17, 2018 at 8:51
  • yes, you are right! Commented Jul 17, 2018 at 8:58