When working with large datasets, I often want to test my code with very few samples. This allows me to spot bugs before investing a long time in calculations.
One of the time consuming steps is often reading the data, so it's nice that Pandas lets me specify nrows to read the file up to a certain line, then stop. I don't care about accuracy, but about code bugs.
I don't seem to find a similar functionlity when using numpy directly, either with getfromtxt or loadtxt. Am I overseeing something? I'll go ahead and look into it myself if it's not available, but I thought I'd check with you guys first. Thanks!