I'm visualizing a csv with pgfplotstable as following:

    string type,
    col sep = comma,
    begin table=\begin{longtable},
    end table=\end{longtable},
    columns={{packo id},{N}},
    every head row/.style={before row=\toprule, after row=\midrule\endhead},
    every last row/.style={after row=\bottomrule}

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

  • 3
    Yes you can have a look at skip between rows key and apply twice
    – percusse
    May 5, 2016 at 20:23
  • @percusse an answer, sir?
    – cmhughes
    May 5, 2016 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, 2016 at 21:12

1 Answer 1


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.

Here as OP mentioned this is utilized as

skip rows between index={0}{20},
skip rows between index={100}{1000}

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

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .