Query about the dataset

How to convert a doc file data in csv file of dimension 6000000*20.

It depends on how you want to convert it and what are the separators/delimiters.
Check the function np.genfromtxt() function present in numpy library