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
To create a single Column from a nested list, I do something along these lines:
import itertools
from astropy.table import Column
a = [[x] * x for x in range(1, 5)]
Column(list(itertools.chain(*a)))
I wonder whether it would make any sense to modify Column to directly accept iterators as initialization? I tried to find issues where this was discussed, and I guess probably this is upstream as np arrays work exactly the same.
The text was updated successfully, but these errors were encountered:
To create a single Column from a nested list, I do something along these lines:
I wonder whether it would make any sense to modify Column to directly accept iterators as initialization? I tried to find issues where this was discussed, and I guess probably this is upstream as np arrays work exactly the same.
The text was updated successfully, but these errors were encountered: