简体   繁体   中英

how to extract data frame inside a pandas data frame column

from a pandas data frame(3 * 5), how to extract a column (with rows containing data frame objects as values(each row data frame of 2 * 10) ) into a separate data frame(6 * 10 rows)

log_df['df_inside'] = log_df['input'].apply(lambda x :parser(x))

parser(x) returns a data frame(2 * 10) for each row after apply. After the above step, how to extract out df_inside data frame from the log entries?

pd.concat(log_df['df_inside'].tolist()).reset_index(drop=True) 工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM