【发布时间】:2020-09-10 18:21:21
【问题描述】:
我正在向coursera 学习 Julia
using DelimitedFiles
EVDdata = DelimitedFiles.readdlm("wikipediaEVDdatesconverted.csv", ',')
# extract the data
epidays = EVDdata[:,1]
EVDcasesbycountry = EVDdata[:, [4, 6, 8]]
# load Plots and plot them
using Plots
gr()
plot(epidays, EVDcasesbycountry)
我收到错误消息Cannot convert Array{Any,2} to series data for plotting
但在那门课程中,讲师成功地绘制了数据。我哪里错了?
我搜索错误,我最终将字符串解析为整数。由于数据集可能包含字符串值。
或者我错过了什么。
【问题讨论】:
标签: julia