SyntaxFix
Write A Post
Hire A Developer
Questions
I'd use iloc, which takes a row/column slice, both based on integer position and following normal python syntax. If you want every 5th row:
iloc
df.iloc[::5, :]