public void CreateSeries_WithArray_Test() { var series = pd.Series(new int[] { 1, 2, 3 }); Assert.Equal(3, series.Size); Assert.Equal(3, series[2]); }
public void CreateSeries_WithArray_Test() { var rawData = new int[] { 1, 2, 3 }; var series = pd.Series(rawData); Assert.Equal(3, series.Size); for (var i = 0; i < rawData.Length; i++) { var data = series[i] as NDArray; Assert.Equal(rawData[i], data.GetInt32()); } }