Skip row in genfromtxt Skip row in genfromtxt numpy numpy

Skip row in genfromtxt


Use np.genfromtxt's comments='#' parameter.

From the docs:

comments : str, optional    The character used to indicate the start of a comment.    All the characters occurring on a line after a comment are discarded