df = sqlContext.createDataFrame([("test", 1)]) df.show() +----+---+ | _1| _2| +----+---+ |test| 1| +----+---+