SiaNet/Data/DataFrame.cs
/// <summary>
/// Prints the dataframe, by default first 5 records are printed. Helpful to understand the data structure.
/// </summary>
/// <param name="count">The count of records to print.</param>
/// <param name="title">The title to display.</param>
Prints the dataframe, by default first 5 records are printed. Helpful to understand the data structure.
Prints the dataframe by default first 5 records are printed . Helpful to understand the data structure .
public void Head(int count = 5, string title = "")
        {
            if (count > UnderlayingVariable.shape[0])
            {
                count = UnderlayingVariable.shape[0];
            }
            if(!string.IsNullOrWhiteSpace(title))
            {
                Console.WriteLine("-----------------{0}----------------", title);
            }
            Console.WriteLine(UnderlayingVariable[new NDArray(Enumerable.Range(0, count - 1).ToArray())].ToString());
        }
public void Head ( int count = 5 , string title = " " ) { if ( count > UnderlayingVariable . shape [ 0 ] ) { count = UnderlayingVariable . shape [ 0 ] ; } if ( ! string . IsNullOrWhiteSpace ( title ) ) { Console . WriteLine ( " " , title ) ; } Console . WriteLine ( UnderlayingVariable [ new NDArray ( Enumerable . Range ( 0 , count - 1 ) . ToArray ( ) ) ] . ToString ( ) ) ; }
Prints the dataframe, by default first 5 records are printed.
Prints the dataframe by default first 5 records are printed .
count
int
The count of records to print.
The count of records to print .
title
string
The title to display.
The title to display .