+ 2
how can I format dynamically
See program: 3d should be variable... maybe length of input https://code.sololearn.com/c3xNy3y3Kqfj/?ref=app
7 ответов
+ 7
It looks like we can use pandas dataframe to output table-like data. See the sample in the file:
https://code.sololearn.com/c790Hm8uoR7k/?ref=app
+ 5
Oma Falk, can you please make us a sample for output to clearly understand your needs? Do you want to output in columns? May be you check the max width of a column and use this value to format output with f-strings? Thanks!
+ 4
Here is an other try to print table-like formatted data:
https://code.sololearn.com/c415KS1R03ir/?ref=app
+ 2
Lothar recently I read that pandas formats mininum as good as matplotlib.
+ 2
Lothar but for that we have to keep all data in memory.
print and forget wont work.
+ 1
Rithea Sreng yep
0
Lothar
it was originally
this
https://code.sololearn.com/c5pI6qc6SbHp/?ref=app
code.
depending on n one number should have place 1-3 digits.