Skip to content

Added DataFrame>> #toString. Fixed #126.#250

Merged
jecisc merged 1 commit intoPolyMathOrg:masterfrom
Joshua-Dias-Barreto:markdownPrinter
Jun 2, 2023
Merged

Added DataFrame>> #toString. Fixed #126.#250
jecisc merged 1 commit intoPolyMathOrg:masterfrom
Joshua-Dias-Barreto:markdownPrinter

Conversation

@Joshua-Dias-Barreto
Copy link
Copy Markdown
Collaborator

I've implemented a method toString so that DataFrames can be converted to a string table.

	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 toString.

This should return a string which looks like a DataFrame

#    City         Population  BeenThere  
'A'  'Barcelona'  1.609       true       
'B'  'Dubai'      2.789       true       
'C'  'London'     8.788       false      

@jecisc jecisc merged commit 509b47a into PolyMathOrg:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants