Skip to content

zyadamr-dev/Kuala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐨 Kuala

Kuala — A simple, Go-powered data analysis library inspired by pandas! Bring the power of data frames to your Go projects with minimal boilerplate.


📋 Table of Contents


✨ Features

  • CSV I/O: Read and manipulate CSV files with ease.
  • Data Operations: Perform common analyses:
    • Sum()
    • Std() (Standard Deviation)
    • Col() specific columns
    • Loc() to retrieve specific rows
  • Lightweight & Fast: Designed for high performance in Go environments.

📦 Installation

go get github.com/zyadamr-dev/Kuala

🚀 Usage

package main

import (
    "fmt"
    "github.com/zyadamr-dev/Kuala"
)

func main() {
    // Load the CSV data
    df, err := io.ReadCSV("data.csv")
    if err != nil {
        panic(err)
    }

    // Sum of the "Age" column
    totalAge := df.Sum("Age")
    fmt.Println("Total Age:", totalAge)

    // Standard deviation of the "Score" column
    scoreStd := df.Std("Score")
    fmt.Println("Score Std Dev:", scoreStd)

    // Select "Name" and "Email" columns
    subset := df.Col("Name", "Email")
    fmt.Println(subset)

    // Retrieve the 5th row (zero-based index)
    row := df.Loc(4)
    fmt.Println("Row 5:", row)
}

About

A simple python panda-like library for Golang users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages