Thursday, December 26, 2019

Exercises with Datasets


user="https://raw.githubusercontent.com/OlgaBelitskaya/";
path="machine_learning_engineer_nd009/master/";
data=Import[StringJoin[user,path,
"Machine_Learning_Engineer_ND_P3/customers.csv"]];
Dataset[data[[1;;5]]]
TableForm[data[[2;;5]],TableHeadings->{None,data[[1]]}]
TabView[Table[data[[1,i]]->data[[j,i]],
{j,Range[2,30,1]},{i,Range[3,8,1]}]]
ListLinePlot[Table[data[[All,i]],{i,Range[3,8,1]}],
PlotLegends->data[[1,3;;8]],
PlotStyle->Table[ColorData["BrightBands"][i/6],{i,6}],
Filling->Axis,ImageSize->{900,450},AspectRatio->1/2,
PlotRange->All,GridLines->All]


No comments:

Post a Comment