toMapConverts DataFrame into Map<String, List<*>> from column names to column values.API reference: toMap toMap() 30 October 2026toListassociate