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

describe should also apply to Vector #2010

Closed
scls19fr opened this issue Nov 11, 2019 · 5 comments
Closed

describe should also apply to Vector #2010

scls19fr opened this issue Nov 11, 2019 · 5 comments

Comments

@scls19fr
Copy link

Hello,

describe function is very convenient to have a quick look at dataframe value.
But it will be great if it could apply to Vector also

I was expecting to be able to do:

describe(df[!, :column])

Kind regards

@bkamins
Copy link
Member

bkamins commented Nov 11, 2019

Use describe(select(df, :column)).

describe for an AbstractVector is defined in StatsBase.jl:

julia> using StatsBase

julia> describe([1,2,3,4])
Summary Stats:
Length:         4
Missing Count:  0
Mean:           2.500000
Minimum:        1.000000
1st Quartile:   1.750000
Median:         2.500000
3rd Quartile:   3.250000
Maximum:        4.000000
Type:           Int64

@bkamins bkamins closed this as completed Nov 11, 2019
@scls19fr
Copy link
Author

Thanks @bkamins maybe doc should be improved to show such a usage (describe(select(df, :column)))

@bkamins
Copy link
Member

bkamins commented Nov 11, 2019

OK - I will update the docs anyway today so I can add it.

@bkamins
Copy link
Member

bkamins commented Nov 11, 2019

See #2011 (please leave a comment if something is not clear)

@scls19fr
Copy link
Author

Thanks @bkamins

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

No branches or pull requests

2 participants