18 references to Melt
Microsoft.Data.Analysis.Tests (18)
DataFrameTests.cs (18)
1604DataFrameAssert.Equal(outputDataFrame, inputDataFrame.Melt(idColumns, valueColumns, variableName, valueName, dropNulls)); 1617Assert.Throws<ArgumentNullException>(() => df.Melt(null, new string[] { "id", "A", "B" })); 1618Assert.Throws<ArgumentException>(() => df.Melt(new string[0], new string[] { "id", "A", "B" })); 1621Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A", "B" }, new string[0])); 1624Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "A", "B" })); 1627Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: null)); 1628Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: "")); 1629Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: " \r\n\t")); 1632Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: null)); 1633Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: "")); 1634Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: " \r\n\t")); 1637Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, valueName: "B")); 1640Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: "B")); 1643Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "B" }, variableName: "TestName", valueName: "TestName")); 1646Assert.Throws<InvalidOperationException>(() => df.Melt(new string[] { "id", "A", "B" })); 1649Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "NonExistentColumn" }, new string[] { "A", "B" })); 1652Assert.Throws<ArgumentException>(() => df.Melt(new string[] { "id", "A" }, new string[] { "NonExistentColumn" })); 1655DataFrame melted = df.Melt(new string[] { "id" }, new string[] { "A" });