spark dataframe without column

Solutions on MaxInterview for spark dataframe without column by the best coders in the world

showing results for - "spark dataframe without column"
Lina
28 May 2016
1Since Spark 1.4 you can use drop method:
2
3#Scala
4case class Point(x: Int, y: Int)
5val df = sqlContext.createDataFrame(Point(0, 0) :: Point(1, 2) :: Nil)
6df.drop("y")
7
8#Python
9df = sc.parallelize([(0, 0), (1, 2)]).toDF(["x", "y"])
10df.drop("y")
11## DataFrame[x: bigint]
similar questions
queries leading to this page
spark dataframe without column