How to View Data Frame Summaries in Julia
Guide 1
using RDatasets
iris = dataset("datasets", "iris")
describe(iris)
describe()
function can be used. Let’s summarize the iris
data.
julia> describe(iris)
5×7 DataFrame
Row │ variable mean min median max nmissing eltype
│ Symbol Union… Any Union… Any Int64 DataType
─────┼────────────────────────────────────────────────────────────────────────────────────────────
1 │ SepalLength 5.84333 4.3 5.8 7.9 0 Float64
2 │ SepalWidth 3.05733 2.0 3.0 4.4 0 Float64
3 │ PetalLength 3.758 1.0 4.35 6.9 0 Float64
4 │ PetalWidth 1.19933 0.1 1.3 2.5 0 Float64
5 │ Species setosa virginica 0 CategoricalValue{String, UInt8}
Environment
- OS: Windows
- julia: v1.6.3