Apply pandas function to column to create multiple new columns?
问题 How to do this in pandas: I have a function extract_text_features on a single text column, returning multiple output columns. Specifically, the function returns 6 values. The function works, however there doesn\'t seem to be any proper return type (pandas DataFrame/ numpy array/ Python list) such that the output can get correctly assigned df.ix[: ,10:16] = df.textcol.map(extract_text_features) So I think I need to drop back to iterating with df.iterrows() , as per this? UPDATE: Iterating with