Код: Выделить всё
schema = StructType([
StructField("id", IntegerType(), True),
StructField("name", StringType(), True)])
df = sqlContext.read.csv("file.csv",
header=False, schema = schema)
Код: Выделить всё
Row(artistid=1240105, artistname=u'Andr\xe9 Visior')
Код: Выделить всё
1240105,André Visior
Подробнее здесь: https://stackoverflow.com/questions/428 ... -dataframe
Мобильная версия