DataFrame display in IJulia


#1

Is there an easy way, like an environment variable or a function I can override to avoid displaying the column types and row numbers of DataFrames in IJulia?

When I try this

DataFrame(a=[1,2], b=["3", "4"])

I get

2 rows × 2 columns

a b
Int64 String
1 1 3
2 2 4

Which ideally would look like

a b
1 3
2 4

#2

Try “ first(df,n)”.


#3

You can get a bit closer to what you want with

show(df,summary=false)

but you still get column types.

You’d need a change to showrows function in abstractdataframe/show.jl to add an option to suppress printing of type info.


#4

Thanks, that help