# pgfplotstable show subset of rows?

I'm visualizing a csv with pgfplotstable as following:

\pgfplotstabletypeset[
string type,
col sep = comma,
begin table=\begin{longtable},
end table=\end{longtable},
columns={{packo id},{N}},
every last row/.style={after row=\bottomrule}
]
{csv/comparison.csv}


However, I would like to show only a subset of the rows in the file. For instance, row 20 to 100. Is this possible?

• Yes you can have a look at skip between rows key and apply twice – percusse May 5 '16 at 20:23
• @percusse an answer, sir? – cmhughes May 5 '16 at 21:06
• I was able to do it with two lines: "skip rows between index={0}{20}, "skip rows between index={100}{1000}". If you add that as an answer I can accept it if you want. Thanks! – The Oddler May 5 '16 at 21:12

The keys skip between rows can be applied more than once. For frequent intervals it is tedious to write it but can be used to select different row groups.
skip rows between index={0}{20},

will skip the initial 20 and the interval [100,1000] inclusive.