0

I have:

ls1=[1,2,3,4]
ls2=[1,4]

I want to create a dataframe with two columns

pd.DataFrame({'col1':ls1,'col2':ls2})

but get an error arrays must all be same length

I want:

enter image description here

I want

frank
  • 2,346
  • 5
  • 25
  • 55

0 Answers0