[Tutor] NumPy Generates ValueError: Some errors were detected ! Line #9 (got 42 columns instead of 1)

David bouncingcats at gmail.com
Sat Sep 28 20:51:15 EDT 2019


On Sun, 29 Sep 2019 at 05:25, Stephen P. Molnar <s.molnar at sbcglobal.net> wrote:

> As much as I wish I could claim that it was a stroke of genius on my
> part, I'm sure that it was just dumb luck, but I have solved the problem.
>
> The correct liner of code is:
>
> data = np.genfromtxt(name_in, usecols=(3), dtype=None, skip_header=8,
> skip_footer=1, encoding=None)

Thanks for ending the thread with a confirmation of the solution to
your problem.

It is a great way to thank the people who made effort to assist you,
and also helpful to future readers who might be reading this while searching
for help with a similar problem.


More information about the Tutor mailing list