Closed Joshua-Dias-Barreto closed 1 year ago
I've implemented a method toMarkdown so that DataFrames can be converted to a Markdown formatted table.
toMarkdown
df := DataFrame withRows: #( #( 'Barcelona' 1.609 true ) #( 'Dubai' 2.789 true ) #( 'London' 8.788 false ) ). df rowNames: #( 'A' 'B' 'C' ). df columnNames: #( 'City' 'Population' 'BeenThere' ). df toMarkdown.
This should return a string which can be copy-pasted in an editor which supports Markdown.
| # | City | Population | BeenThere | | --- | ----------- | ---------- | --------- | | 'A' | 'Barcelona' | 1.609 | true | | 'B' | 'Dubai' | 2.789 | true | | 'C' | 'London' | 8.788 | false |
I've implemented a method
toMarkdown
so that DataFrames can be converted to a Markdown formatted table.This should return a string which can be copy-pasted in an editor which supports Markdown.