Код: Выделить всё
+---+-----+
|mvv|count|
+---+-----+
| 1 | 5 |
| 2 | 9 |
| 3 | 3 |
| 4 | 1 |
Код: Выделить всё
mvv = [1,2,3,4]
count = [5,9,3,1]
Код: Выделить всё
mvv_list = mvv_count_df.select('mvv').collect()
firstvalue = mvv_list[0].getInt(0)
AttributeError: getInt
Подробнее здесь: https://stackoverflow.com/questions/386 ... ython-list
Мобильная версия