Skip to content Skip to sidebar Skip to footer

Dask Error: Length Of Values Does Not Match Length Of Index

I have read csv file using dask this way: import dask.dataframe as dd train = dd.read_csv('act_train.csv') Then I would like to apply simple logic per row , that works pretty fin

Solution 1:

If x doesn't contain space character than x.split(' ') will return a list containing single element x.

So, when u are trying to access the second element of x.split(' ') by calling x.split(' ')[1]. It will give the error :

"Length of values does not match length of index", as there is no element at index 1 in x.split(' ').


Post a Comment for "Dask Error: Length Of Values Does Not Match Length Of Index"