ValueError: arrays must all be same length in python using pandas DataFrame
问题 I'm a newbie in python and using Dataframe from pandas package (python3.6). I set it up like below code, df = DataFrame({'list1': list1, 'list2': list2, 'list3': list3, 'list4': list4, 'list5': list5, 'list6': list6}) and it gives an error like ValueError: arrays must all be same length So I checked all the length of arrays, and list1 & list2 have 1 more data than other lists. If I want to add 1 data to those other 4 lists( list3 , list4 , list5 , list6 ) by using pd.resample , then how