Skip to content

Commit

Permalink
v1.15.0 DataFrame nanFound initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftwareLiteracy committed Oct 23, 2023
1 parent 6a8f874 commit 10ad529
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DataFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ class DataFrame {
//-----------------------------------------------------------------
DataFrame():
n_rows( 0 ), n_columns( 0 ), elements( 0 ),
maxRowPrint( 10 ), noTime( false ) {}
nanFound( false ), maxRowPrint( 10 ), noTime( false ) {}

//-----------------------------------------------------------------
// Load data from CSV file path/fileName, populate DataFrame
//-----------------------------------------------------------------
DataFrame( std::string path, std::string fileName, bool noTime = false ):
maxRowPrint( 10 ), noTime( noTime )
nanFound( false ), maxRowPrint( 10 ), noTime( noTime )
{
ReadData( path, fileName );
SetupDataFrame(); // Process parsedData into a DataFrame
Expand All @@ -76,16 +76,16 @@ class DataFrame {
//-----------------------------------------------------------------
DataFrame( size_t rows, size_t columns ):
n_rows( rows ), n_columns( columns ), elements( columns * rows ),
maxRowPrint( 10 ), noTime( false ) {}
nanFound( false ), maxRowPrint( 10 ), noTime( false ) {}

//-----------------------------------------------------------------
// Empty DataFrame of size (rows, columns) with column names in a
// single whitespace delimited string.
//-----------------------------------------------------------------
DataFrame( size_t rows, size_t columns, std::string colNames ):
n_rows( rows ), n_columns( columns ), elements( columns * rows ),
columnNames( std::vector<std::string>(columns) ), maxRowPrint( 10 ),
noTime( false )
columnNames( std::vector<std::string>(columns) ),
nanFound( false ), maxRowPrint( 10 ), noTime( false )
{
BuildColumnNameIndex( colNames );
}
Expand All @@ -97,7 +97,7 @@ class DataFrame {
DataFrame( size_t rows, size_t columns,
std::vector< std::string > columnNames ):
n_rows( rows ), n_columns( columns ), elements( columns * rows ),
columnNames( columnNames ), maxRowPrint( 10 ),
columnNames( columnNames ), nanFound( false ), maxRowPrint( 10 ),
noTime( false )
{
BuildColumnNameIndex();
Expand Down

0 comments on commit 10ad529

Please sign in to comment.