Coder Social home page Coder Social logo

textables.jl's People

Contributors

femtocleaner[bot] avatar github-actions[bot] avatar jacobadenbaum avatar magerton avatar pearlzli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

textables.jl's Issues

Fix compatibility with DataFrames 0.22

Currently, we're relying on something that got deprecated and has been removed in 0.22. Need to track this down and fix it before tagging a new release.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Allow Compat v4 in compatibility requirement

The current compatibility entry restricts the version of Compat to be v3. This has prevented the use of latest versions of DataFrames.jl. Please consider update the compatibility entry in Project.toml.

Error when creating table from single column.

If I have a single TableCol (say t), and use the command to_tex(t) it throws up an error ERROR: MethodError: no method matching to_tex(::TableCol{1, 1}). The command works when I use to_tex(hcat(t,t)). It looks like creating a table needs at least two columns. I am not sure if that is desirable as some situations call for creating a single column table.

[Feature Request] Choosing order of rows in regression tables

Would it be possible to include a capability to choose the order of rows in regression tables (or at least move certain variables to the top)? For example, if a variable is included in the third regression but not the first two, it is included at the bottom of the table. Would it be possible to include an option to move it to the top?

Feature Request: Double Lines for Headers

It would be nice to have an option like the following:

to_tex(table, border=:double)

Where the top and bottom borders of the table (which are printed as \toprule and \bottomrule by default) would be replaced with \hline \hline.

This shouldn't take much effort to do. Just need to add an extra option to TableParams with an appropriate default, and change the head and foot methods accordingly.

StatsModels dependency issue with registered package

I get this error when I try to install with ] add TexTables

ERROR: Unsatisfiable requirements detected for package StatsModels [3eaba693]:
 StatsModels [3eaba693] log:
 ├─possible versions are: [0.3.0-0.3.1, 0.4.0, 0.5.0, 0.6.0-0.6.10] or uninstalled
 ├─restricted by compatibility requirements with Bootstrap [e28b5b4c] to versions: 0.6.0-0.6.10
 │ └─Bootstrap [e28b5b4c] log:
 │   ├─possible versions are: [2.0.0-2.0.1, 2.1.0, 2.2.0] or uninstalled
 │   └─restricted to versions 2.2.0 by an explicit requirement, leaving only versions 2.2.0
 └─restricted by compatibility requirements with TexTables [ebf5ac4f] to versions: 0.5.0 — no versions left
   └─TexTables [ebf5ac4f] log:
     ├─possible versions are: 0.1.0 or uninstalled
     └─restricted to versions * by an explicit requirement, leaving only versions 0.1.0

However, it works fine when I instead use ] add TexTables#master. Perhaps you haven't re-published the package recently?

Feature Request: Export DataFrame to LaTeX

This is a little tricky since each row needs an index. This can be solved by indexing by row number, but I think a lot of people who want this feature will not be happy with the row number showing up. So, this feature will need to come in two parts:

  1. Convert DataFrame to IndexedTable
  2. Update printing methods to allow the user to suppress printing the row index.

Neither of these is particularly hard. Just needs doing.

Remove toprule line from table defaults

The current latex tables for export look terrible because of the inclusion of a toprule. While there are some tables for which this is appropriate, it should not be the default option.

Table indexing tests broken

When I ran the runtests.jl file, I got a message that two of the tests here were broken (not that they failed)

I notice that the two lines above the broken are commented out. Should lines 123 and 124 be commented out as well?

Mixing booktabs and standard tabular commands

It seems like the output mixes \toprule and \bottomrule (booktab commands) with \hline (standard tabular command):

using TexTables
using RDatasets
       
neuro = RDatasets.dataset("boot", "neuro")
summarize(neuro) |> to_tex |> print

\begin{tabular}{r|ccccc}
\toprule
   & Obs & Mean     & Std. Dev. & Min      & Max      \\ \hline
V1 &  40 & -232.720 &    12.862 & -249.900 & -196.900 \\
V2 & 418 & -186.567 &    37.206 & -249.000 &  -98.600 \\
V3 & 469 &  -66.160 &    39.719 & -235.800 &   -0.100 \\
V4 & 468 &   48.074 &    30.760 &    1.000 &  197.800 \\
V5 & 445 &  162.483 &    38.111 &   75.600 &  249.300 \\
V6 &  90 &  229.740 &    18.718 &  154.300 &  249.700 \\
\bottomrule
\end{tabular}

Please consider changing \hline to \midrule (or \toprule and \bottomrule to \hline).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.