You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Convert DataFrame to IndexedTable
Update printing methods to allow the user to suppress printing the row index.
Neither of these is particularly hard. Just needs doing.
The text was updated successfully, but these errors were encountered:
I just needed this feature (DataFrame -> LaTeX-Table) and came up with this method.
But I did not look too much into the package so there might be better implementations.
using DataFrames
import TexTables
function TexTables.regtable(df::DataFrames.DataFrame)
colnames =names(df)
cols =map(icol -> TexTables.TableCol(colnames[icol], collect(1:nrow(df)), df[!,colnames[icol]]), 1:ncol(df))
TexTables.regtable(cols...)
endto_tex(regtable(df)) # df is the DataFrame to export
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:
Neither of these is particularly hard. Just needs doing.
The text was updated successfully, but these errors were encountered: