【发布时间】:2018-05-20 01:03:45
【问题描述】:
我用漂亮的汤做了一些网页抓取,这是我得到的输出文本:
TCGA-KK-A7B3-01A Male Stage not reported Alive FPKM 5.5 Living days 899 (2.5 years)
TCGA-G9-6347-01A Male Stage not reported Alive FPKM 14.2 Living days 2089 (5.7 years)
TCGA-KC-A4BL-01A Male Stage not reported Alive FPKM 3.8 Living days 934 (2.6 years)
TCGA-KK-A7AQ-01A Male Stage not reported Alive FPKM 2.6 Living days 1610 (4.4 years)
TCGA-G9-6373-01A Male Stage not reported Alive FPKM 4.7 Living days 811 (2.2 years)
....
如何将此结果保存到数据框中?
如何将此信息保存到 csv 文件中。
我需要 csv 文件来做进一步的分析吗?
【问题讨论】:
-
这些词之间用空格隔开
标签: python csv dataframe web-scraping beautifulsoup