Skip to content

Releases: ronisbr/PrettyTables.jl

v0.6.0

23 Sep 10:37
v0.6.0
Compare
Choose a tag to compare
  • The format of the horizontal line in the table, which are drawn using the option hlines, can now be selected using the keyword hlines_format.
  • The alignment of a single cell can now be changed regardless of the column alignment. This can be achieve by the keyword cell_alignment.
  • The line between the header and the data can now be hide using the variable header_line of the structure PrettyTableFormat. (Issue #15)
  • New predefined highlighters: hl_cell, hl_col, hl_row, which can be used to apply highlights to single cells or to entire columns or rows, respectively.
  • The formatter ft_printf is now only applied to cells that are of type Number. (Issue #19)
  • The formatter ft_printf can now receive one integer if the user wants to format only a single column.
  • End of support of Julia 1.1. The supported versions are 1.0 and 1.2.

v0.5.1

22 Jul 18:22
v0.5.1
Compare
Choose a tag to compare
  • DataFrames with strings were being printed surrounded by quotes, which were leading to a wrong escaping. (Issue #16)

v0.5.0

27 Jun 09:47
v0.5.0
Compare
Choose a tag to compare
  • The macro @pt can be used to print tables with global configurations. Those configurations can be set by the macro @ptconf.
  • There is now the option nosubheader to suppress printing sub-headers. This can be useful when printing DataFrame or Dict and it is desired to hide the types of the columns. (Issue #14)
  • PrettyTables.jl is now compatible with Tables.jl 0.2. It means that if an elements that is passed to pretty_table is not one of those natively supported, then it will call Tables.columns to automatically convert it. If it fails, than Tables.jl will throw an error instead of PrettyTables.jl. (Issue #13)
  • If only one highlighter is wanted, then an instance of Highlighter can now be directly passed to the keyword highlighters, i.e. it does not must be a Tuple anymore.

v0.4.1

01 Apr 15:46
Compare
Choose a tag to compare
  • If the user wants to crop the output, then the printing function does not need to process the entire matrix. Thus, now it will only process the columns and rows that will be actually printed, which yielded a huge performance gain when big matrices are printed with crop on.
  • Matrices with nothing and missing are now correctly printed.

v0.4.0

11 Mar 13:31
Compare
Choose a tag to compare
  • The text can now be horizontally and / or vertically cropped to fit the available screen size. Notice that, by default, the screen size is obtained and the text is cropped, which is a breaking change compared to the previous version. This behavior can be modified by the keywords crop and screen_size.
  • Vector can now be printed natively.
  • The user can now specify filters for the data using the keywords filters_col and filters_row, so that only a partial subset of the input is printed.
  • Dict can now be printed natively. (Issue #6)
  • The formatting was wrong when printing a table with sub-headers and the row number column. (Issue #9)
  • The row number column size is now correctly computed when the header is omitted. (Issue #10)

v0.3.1

17 Feb 17:20
Compare
Choose a tag to compare
  • Vector was replaced by AbstractVector in predefined formatters. Hence, it is now possible to use range notation. Thus, for example ft_printf("%4.2f", [2,3,4,5,6,7,8,9,10]) can now be rewritten as ft_printf("%4.2f", 2:10). (#8)

v0.3.0

03 Feb 12:13
Compare
Choose a tag to compare
  • Every styling option is now handled by Crayons.jl.
  • Strings are escaped before printing the header. This avoids problems in formatting if escape sequences are present. (Issue [#4][gh-issue-4])
  • The text inside the cells can have multiple lines. The header can be suppressed when printing the table. (Issue [#3][gh-issue-3])
  • Many performance improvements.
  • The hlines keywords can accept ranges. (PR [#5][gh-pr-5])
  • The pre-defined formatter ft_printf uses the function sprintf1 from the package Formatting.jl instead of the macro @sprintf, leading to a huge performance gain. (Issue [#7][gh-issue-7])

v0.2.1

15 Jan 14:00
Compare
Choose a tag to compare
  • The version of the package was not updated on Project.toml in the last release.

v0.2.0

15 Jan 13:30
Compare
Choose a tag to compare
  • The header is not assumed to be on the data anymore. It is now specified by a new parameter called header.
  • Only Matrix{Any} was allowed to be printed.
  • Support for highlighters.
  • Some pre-defined highlighters were added.
  • Some pre-defined formatters were added.
  • Initial support for Tables.jl API.
  • New package documentation using Documenter.jl.
  • Support for sub-headers.
  • There is now an option called hlines to draw horizontal lines between selected rows.
  • New pre-defined formats: unicode_rounded and borderless.

v0.1.0 - Initial version

12 Jan 03:48
Compare
Choose a tag to compare

Version 0.1.0

  • Initial version.