question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add head(), tail() and thin() methods?

See original GitHub issue

These would be shortcuts for isel/slice syntax:

  • ds.head(time=5) -> ds.isel(time=slice(5)): select the first five time values
  • ds.tail(time=5) -> ds.isel(time=slice(-5, None)): select the last five time values
  • ds.thin(time=5) -> ds.isel(time=slice(None, None, 5)): select every 5th time value

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dcheriancommented, Sep 3, 2019

Go for it!

1reaction
DangoMeloncommented, Sep 3, 2019

Is this being worked on?

If not, I can send a PR today since I have some code ready that might help add this functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas DataFrame head() and tail() Method - Finxter
DataFrame head() and tail()​​ These methods display n numbers of records (top or bottom). These methods are useful when you are accessing large...
Read more >
The head() and tail() function in R - Detailed Reference
This article will address the head() and tail() functions in R, which returns the first and last n rows respectively. Syntax of the...
Read more >
A Simple Method to Prepare Head-to-Tail Coupled ...
The textures and the growth kinetics of the hexagons were analyzed using a polarizing microscope equipped with a Mettler hot stage and a...
Read more >
Head and Tail Function in Python Pandas - YouTube
We will learn about Head() and Tail() method in dataframe. The head() method is used for returning top n (by default value 5)...
Read more >
What are head and tail functions in pandas? - Educative.io
The head function in Python displays the first five rows of the dataframe by default. It takes in a single parameter: the number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found