Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cppandas

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.

Features

✅ 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)

Installation

1. Using Precompiled Library

If you prefer linking against the precompiled static library (libcppandas.a), follow these steps:

  1. Copy cppandas.h to your project's include directory.
  2. Copy libcppandas.a to your project's lib directory.
  3. Compile and link.

example g++

g++ main.cpp -o main -Iinclude -Llib -lcppandas

2. Using Source Files

Include cppandas.h and cppandas.cpp in your project:

#include "cppandas.h"

Compile with:

g++ main.cpp cppandas.cpp -o main

Basic Usage

#include "cppandas.h"

int main() {
    DataFrame df;
    df.read_csv("data.csv");
    df.show_frame();
    return 0;
}

Documentation

For detailed documentation, see Documentation.

License

cppandas is under the MIT License.

About

Lightweight C++ dataframe library ( pandas clone )

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages