Hey. I'm importing an array in a text file via array=numpy.loadtxt("testdata.txt")
.
Is there an easy way to count the number of rows and columns? Maybe something like x=numpy.countrow(array)
?
I've had a look around and couldn't find anything suitable.
Thanks, Alex
Chromana 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.