2

I have a list as follows( list of numpy.ndarray).

[array([207.48,   280.98,   227.55,   205.99,   896.99,
         218.75,   220.98,   415.88,], dtype=float64), array([  205.99,   363.25,   208.16,   500.98,   218.08,   320.98,
         296.18,   207.48,   280.98,   227.55,   205.99,   896.99,
         218.75,   220.98,   415.88,   699.99,  1360.14,   420.98,
         315.98,   449.99,   276.2 ,   370.98,   328.14,   276.2 ,
         296.18,   535.64,   399.98,   294.62,   500.98,   363.25])]

Now I need to convert to a list of lists as follows.

[[207.48,   280.98,   227.55,   205.99,   896.99,
             218.75,   220.98,   415.88,], [  205.99,   363.25,   208.16,  500.98,   218.08,   320.98,296.18,   207.48,   280.98,   227.55,   205.99,   896.99,218.75,   220.98,   415.88,   699.99,  1360.14,   420.98,               315.98,   449.99,   276.2 ,   370.98,   328.14,   276.2 ,                 296.18,   535.64,   399.98,   294.62,   500.98,   363.25]]

I tried this but it didn't give expected result. Any help will be highly appreciated.

Community
  • 1
  • 1
Manura Omal
  • 1,005
  • 3
  • 10
  • 26

0 Answers0