Guest User

Untitled

a guest
Feb 23rd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. ## Create a DataFrame
  2. df = pd.DataFrame(data)
  3.  
  4. ## downsample to every nth line
  5. df_downsampled = df.iloc[::nth, :]
  6.  
  7. # original indices are preserved
Add Comment
Please, Sign In to add comment