Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods Frame.head() and Frame.tail() #1441

Merged
merged 2 commits into from
Nov 21, 2018
Merged

Add methods Frame.head() and Frame.tail() #1441

merged 2 commits into from
Nov 21, 2018

Conversation

st-pasha
Copy link
Contributor

Closes #1307

@st-pasha st-pasha self-assigned this Nov 21, 2018
@st-pasha st-pasha merged commit 444678f into master Nov 21, 2018
@st-pasha st-pasha deleted the headtail branch November 21, 2018 20:52
if (n > dt->nrows) n = dt->nrows;
py::otuple aa(2);
aa.set(0, py::orange(0, n, 1));
aa.set(1, py::None());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this py::None() corresponds to?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's None in python. So, I'm creating a tuple (range(0, n), None) here.

Copy link
Contributor

@oleksiyskononenko oleksiyskononenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@st-pasha st-pasha added this to the Release 0.8.0 milestone Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement head and tail method
2 participants