ncols=6, nrows=

nrows = 0, must be greater than 0