📅  最后修改于: 2022-03-11 14:56:07.247000             🧑  作者: Mango
l = [('Alice', 1),('Jim',2),('Sandra',3)]
df = sqlContext.createDataFrame(l, ['name', 'age'])
df.limit(2).withColumn('age2', df.age + 2).toPandas()