Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing data by column after adding columns to a DataFrame returns error data #7135

Open
wildwind2000 opened this issue Apr 21, 2024 · 0 comments · May be fixed by #7136
Open

Accessing data by column after adding columns to a DataFrame returns error data #7135

wildwind2000 opened this issue Apr 21, 2024 · 0 comments · May be fixed by #7136
Labels
untriaged New issue has not been triaged

Comments

@wildwind2000
Copy link

System Information (please complete the following information):

  • OS & Version: Windows 11
  • ML.NET Version: 3.01
  • .NET Version: .NET 8.0

Describe the bug
Accessing data by column after adding columns to a DataFrame returns error data

var df = DataFrame.LoadCsvFromString("a1,a2\n1,2\n3,4");
var dc0 = DataFrameColumn.Create("a0", new int[] { 0, 0 });
df.Columns.Insert(0, dc0);
var dc1 = df["a1"];
Console.WriteLine(dc1.ToString());

This code expected print: a1: 1 3
But it print: a0: 0 0

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Apr 21, 2024
feiyun0112 added a commit to feiyun0112/machinelearning that referenced this issue Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
1 participant