Read array string of variable length in Python

I wanted to read an array having different lengths for the columns in the array. For example please refer to the list below.

binary,none1,Param,none2

77,2601,54,55

70,,25,224

71,,33,38

67,,22,40

0,,14,

0,,47,

0,,21,

0,,88,

0,,50,

0,,17,

0,,11,

0,,26,

(Please replace the commas with space to get list)

I want to import this to python and insert “null” for empty set. I am trying to convert this into a symmetrical array. Any help is appreciated.


Source: python

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.