create a tuple from columns in a pandas DataFrame
问题 I would like to automatically create a tuple (to be passed to a scipy.stats function) from columns in a pandas dataframe, so that each row of the tuple are the values from each column of the dataframe. here is the header from my dataframe: 4_3-a-0 5_3-a-4 7_3-a-3 datetime_pac 2015-09-03 22:00:00 -100.4 -96.857143 -55.000000 2015-09-03 22:01:00 -100.5 -91.700000 -55.600000 2015-09-03 22:02:00 -100.4 -90.875000 -55.900000 2015-09-03 22:03:00 -100.4 -94.000000 -55.555556 2015-09-03 22:04:00 -100