Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Spark
  3. Question
Spark

how to delete columns in pyspark dataframe

Asked by Chris Dyer Apr 19, 2021 2.2K views 1 answer
Share

About this question

>>> a
DataFrame[id: bigint, julian_date: string, user_id: bigint]
>>> b
DataFrame[id: bigint, quan_created_money: decimal(10,0), quan_created_cnt: bigint]
>>> a.join(b, a.id==b.id, 'outer')
DataFrame[id: bigint, julian_date: string, user_id: bigint, id: bigint, quan_created_money: decimal(10,0), quan_created_cnt: bigint]

 

There are two ids: bigint and I want to delete one. How can I do?

Your answer

1 Answer

More Spark discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Spark Blogs

Guides, tips and career advice on Spark from JanBask experts.