📜  删除列 pyspark - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:44.996000             🧑  作者: Mango

代码示例1
df.drop("firstname") \
  .printSchema()
""" import col is required """  
df.drop(col("firstname")) \
  .printSchema()  
  
df.drop(df.firstname) \
  .printSchema()