I have two identical files with different names that are used to populate two different Deedle dataframes. Yet when I try to compare identical values in the two dataframes the program sees them as not equal to eachother.
var Df1 = Frame.ReadCsv("C:/File1.csv");
var Df2 = Frame.ReadCsv("C:/File2.csv");
if (Df1["Header1", 3] == Df2["Header1",3])
{
Console.WriteLine("The computer sees them as equal");
}
else
{
Console.WriteLine("The computer sees them as not equal");
}
If I cast both values, then the computer sees them as equal. Is there anyway to determine if the two values are equal without casting them?
var Df1 = Frame.ReadCsv("C:/File1.csv");
var Df2 = Frame.ReadCsv("C:/File2.csv");
if ((string)Df1["Header1", 3] == (string)Df2["Header1",3])
{
Console.WriteLine("The computer sees them as equal");
}
else
{
Console.WriteLine("The computer sees them as not equal");
}