📅  最后修改于: 2022-03-11 14:46:44.996000             🧑  作者: Mango
df.drop("firstname") \
.printSchema()
""" import col is required """
df.drop(col("firstname")) \
.printSchema()
df.drop(df.firstname) \
.printSchema()