如题:有如下的dataframe:
val spark = SparkSession .builder() .appName("GraphTest") .enableHiveSupport() .getOrCreate() val sqlContext = spark.sqlContext val v = sqlContext.createDataFrame(List( ("a", "Alice", 34), ("b", "Bob", 36), ("c", "Charlie", 30) )).toDF("id", "name", "age")
想把其中的"name"列重命名为"name1",有什么方法?