Hi,
Do you know DataFrame form pandas module ?
An other solution is :
from itertools import zip_longest
print('a b c d')
>>> for each_a, each_b, each_c, each_d in zip_longest(a, b, c, d):
... print(f'{each_a} {each_b} {each_c} {each_d}')
But it's not exactly what you want !!!
Best,
neurobot
On Monday, September 3, 2018 at 3:14:22 PM UTC+2, chiju melveettil wrote:
>
>
> for eg
>
> lists
> ======
> a=[1,2,4,6]
> b=[2,4,5,6]
> c=[4,5,86,6]
> d=[3,4,6]
>
> what I want is
>
> a b c d
> 1 2 4 3
> 2 4 5 4
> 4 5 86 6
> 6 6 6
>
> how to achieve this python, I tried texttable, tabulate, but no luck they
> wont allow to create table horizontally
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.