cppandas is a lightweight C++ library for handling tabular data, inspired by Python's pandas. It provides basic functionalities for loading, manipulating, and displaying CSV data.
✅ Load data from CSV files
✅ View and manipulate tabular data
✅ Handle missing values (dropna, fillna)
✅ Drop specific columns
✅ Convert data into vectors (string, int, double)
If you prefer linking against the precompiled static library (libcppandas.a), follow these steps:
- Copy
cppandas.hto your project's include directory. - Copy
libcppandas.ato your project'slibdirectory. - Compile and link.
example g++
g++ main.cpp -o main -Iinclude -Llib -lcppandasInclude cppandas.h and cppandas.cpp in your project:
#include "cppandas.h"Compile with:
g++ main.cpp cppandas.cpp -o main#include "cppandas.h"
int main() {
DataFrame df;
df.read_csv("data.csv");
df.show_frame();
return 0;
}For detailed documentation, see Documentation.
cppandas is under the MIT License.