【发布时间】:2021-10-17 02:45:31
【问题描述】:
我想将 LogCat 文本文件的行转换为结构化的 Pandas DF。我似乎无法正确地概念化我将如何做到这一点......这是我的基本伪代码:
dateTime = []
processID = []
threadID = []
priority = []
application = []
tag = []
text = []
logFile = "xxxxxx.log"
for line in logfile:
split the string according to the basic structure
dateTime = [0]
processID = [1]
threadID = [2]
priority = [3]
application = [4]
tag = [5]
text = [6]
append each to the empty list above
write the lists to pandas dataframe & add column names
问题是:我不知道如何用这种结构正确定义分隔符
08-01 14:28:35.947 1320 1320 D wpa_xxxx: wlan1:skip--ssid
【问题讨论】:
-
你能指定
08-01 14:28:35.947 1320 1320 D wpa_xxxx: wlan1: skip--ssid的七个部分是什么吗?
标签: python android pandas logging adb