Skip to content

Persioqq/qcsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qcsv

A simple C++ CSV reader. Inspired by Python Pandas.

Usage

QCsv::ReadCsvFile("example.csv"); // read csv file
QCsv::PrintDf(); // print the DataFrame
QCsv::WriteCsv("example.csv"); // write the changes of DataFrame
QCsv::convertAVectorToStringVector(vector); // a misc utility fucntion to transform vectors.

//  std::vector<std::string> headers;
QCsv::headers[]; // a vector with the DataFrame headers

//  std::map<std::string, std::vector<std::string>> df;
QCsv::df["header"]; // A map that have the DataFrame structure, like python pandas.
// The example above returns the series that is a string vector.

I strongly recommend see the example directory for more info and read the QCsv.hpp code. It won't take much time.

Example

See the example directory for more information.

About

A simple C++ CSV reader. Inspired by Python Pandas.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages