Skip to content

DataFrames with custom formatting of each column of data

License

Notifications You must be signed in to change notification settings

GHTaarn/PrettyDataFrames.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrettyDataFrames.jl

Provides a wrapper for a DataFrame object that gives better control over how each column is displayed.

Installation

using Pkg
pkg"add https://github.com/GHTaarn/PrettyDataFrames.jl"

Use

The only exported symbol is the PrettyDataFrame type which wraps a DataFrame object, e.g.

using DataFrames, PrettyDataFrames

x=PrettyDataFrame(DataFrame(a=rand(6), b=rand(6), c=1:6), :a => "%e", :b => "%9.1f")
filter!(:c => >(2), x.df)
display(x)

This would display the a and b columns using respectively the %e and %9.1f Printf format specifiers.

Acknowledgements

Uses the PrettyTables package and is based on Rafael Guerras post https://discourse.julialang.org/t/is-there-a-better-way-to-format-each-individual-columns-in-a-dataframe/111677/3

About

DataFrames with custom formatting of each column of data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages