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

Deprecate length(df::AbstractDataFrame) in favor of size(df, 2) #1591

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Nov 10, 2018

This definition goes against the view of data frames as collections of rows.

Fixes #1200. Part of #1514.

(Coverage drop seems to be spurious, since the axes method is called by the one above, which is covered.)

This definition goes against the view of data frames as collections of rows.
Copy link
Member

@bkamins bkamins left a comment

Choose a reason for hiding this comment

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

Yes - let us deprecate length. The lastindex definition goes a bit against the contract in Base, but it has to be as is to support usage of end in indexing - right?

@nalimilan
Copy link
Member Author

The lastindex definition goes a bit against the contract in Base, but it has to be as is to support usage of end in indexing - right?

Yes. Anyway it's much less confusing than length.

@nalimilan nalimilan merged commit e8b1efd into master Nov 13, 2018
@nalimilan nalimilan deleted the nl/length branch November 13, 2018 08:03
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.

3 participants