我正在尝试绘制折线图,这是来自csv文件的导入数据:
这是代码:
import pandas as pd
import datetime
import brunel
import re
# Read data
dateparse = lambda x: pd.datetime.strptime(x, '%d-%m-%Y %H:%M:%S')
DISKAVGRIO = pd.read_csv("../DISKAVGRIO_nmon.csv", parse_dates=['DateTime'], date_parser=dateparse)
DISKAVGRIO.head(6)
# Select all column names that starts with hdisk
hdisks = [col for col in DISKAVGRIO.columns if 'hdisk' in col]
yaxis = 'y(' + ','.join(hdisks) + ')'
#print(list(DISKAVGRIO.columns))
print(yaxis)
# Line plot
%brunel data('DISKAVGRIO') x(DateTime) $yaxis line
但是当我尝试绘制折线图时,我收到以下错误消息:
Javascript error adding output!
SyntaxError: "0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead
See your browser Javascript console for more details.
有谁知道为什么会这样?或者缺少什么?