4
The pie-chart you mentioned consist of two data series:
Image source
extract inner circle values as List
tempa = Values /@ Normal @ Values @ dsPie[Transpose]
(*Out: {{0.188111, 0.0394984}, {0.495803, 0.0639874}, ...} *)
Map Total on them to create outer circle:
b = Total /@ tempa
(*Out: {0.227609, 0.55979, 0.2126} *)
Coloring inner circle pairs + ...
3
dsPie = Dataset[<|
"Existing Customer" -> <|
3 -> 0.188111,
"More3" -> 0.495803,
"Less2incl" -> 0.155426|>,
"Attrited Customer" -> <|
3 -> 0.0394984,
"More3" -> 0.0639874,
"Less2incl" -> 0.0571739|>|>];
dsPie[d |-&...
3
Consider the following:
data = ImportString[
"A(1),B(1),A(2),B(2),A(3),B(3),A(4),B(4),A(5),B(5)
1,2,4,5,6,4,7,8,9,0
5,3,2,5,5,2,3,1,8,3
7,3,8,3,2,2,3,4,5,6
9,8,7,2,5,3,6,7,8,9", HeaderLines -> 1
];
ListCurvePathPlot[
Transpose /@ Partition[Transpose[data], 2],
PlotLegends -> Range[5]...
2
Here is another possible way if you want to stay within the dataset framework.
ds = SemanticImportString[
"A(1),B(1),A(2),B(2),A(3),B(3),A(4),B(4),A(5),B(5)
1,2,4,5,6,4,7,8,9,0
5,3,2,5,5,2,3,1,8,3
7,3,8,3,2,2,3,4,5,6
9,8,7,2,5,3,6,7,8,9"];
(*Create list of B versus A pairs*)
xypairs = Partition[ds // First // Keys // Normal, 2];
(*Standard ...
1
Here is another way to do it while trying to remain in the dataset framework. First, we will import the string text representing the CSV file and then convert it into a dataset:
(*Import text from pastebin for conciseness*)
txt = Import["https://pastebin.com/raw/brLjwh8C", "Text"];
(*Convert to dataset*)
ds = SemanticImportString[txt]
...
1
Try this:
data = ImportString[
"DrainI(1),DrainV(1),GateI(1),GateV(1),DrainI(2),DrainV(2),GateI(2),\
GateV(2),DrainI(3),DrainV(3),GateI(3),GateV(3),DrainI(4),DrainV(4),\
GateI(4),GateV(4),DrainI(5),DrainV(5),GateI(5),GateV(5)
3.29E-07,0.00E+00,1.52E-07,1.00E+00,2.97E-07,0.00E+00,1.57E-07,9.\
00E-01,2.57E-07,0.00E+00,1.83E-07,8.00E-01,2.19E-07,0.00E+...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
data × 705plotting × 146
list-manipulation × 118
fitting × 101
import × 99
probability-or-statistics × 43
export × 40
interpolation × 36
dataset × 34
graphics × 29
table × 28
data-structures × 24
visualization × 22
filtering × 21
functions × 17
performance-tuning × 16
string-manipulation × 15
histograms × 14
distributions × 13
excel × 13
nonlinear × 12
curated-data × 12
csv-format × 12
fourier-analysis × 11
data-acquisition × 11