Giter VIP home page Giter VIP logo

potatodax / quipucamayoc Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 100 KB

A high-level quipu visualization library for Python

Home Page: https://github.com/potatodax/quipucamayoc/wiki

License: GNU General Public License v3.0

Python 26.36% TypeScript 73.64%
data-visualization decolonization design ethical-design history inca jupyter-notebook parcel python quipu setuptools typescript visualization speculative-design

quipucamayoc's Introduction

Quipucamayoc

A high-level quipu visualization library for Python

The quipucamayoc data visualization library reimagines the modern data science toolkit as one that includes indigenous modes of data communication. This library is based on Incan numeric quipus and works with Python in a Jupyter Notebook environment. I hope quipucamayoc inspires data scientists to approach their discipline as the weaving together of historical modes of representation with historical problems

✨ For more information on this library and quipus, visit the quipucamayoc wiki page. ✨

Project Structure

|--assets/        <-- SVG elements that make the quipu chart
|--quipucamayoc/  <-- Python files that interface with Jupyter Notebook
|--src/           <-- TypeScript files that build the quipu chart
|--MANIFEST.in    <-- combines JavaScript with the Python build
|--pyproject.toml <-- tells Python library `build` to use setuptools
|--setup.py       <-- defines the Python build
|--tsconfig.json  <-- TypeScript settings

quipucamayoc Data Flow Purple and pink diagram of how data flows through the system

Installation

Make sure you have everything from https://github.com/potatodax/quipucamayoc/blob/main/requirements.txt installed.

Go to https://github.com/potatodax/quipucamayoc/releases/tag/v0.1.0 and download the quipucamayoc-0.1.0.tar.gz file.

Then run:

cd <directory where you downloaded the tar.gz file>
pip3 install quipucamayoc-0.1.0.tar.gz

If successful, you should see the following at the end of the terminal output:

[...]
Successfully installed quipucamayoc-0.1.0

♻️ Note: To uninstall later, simply use:

pip3 uninstall quipucamayoc

Usage

The wiki page and the demo notebook also show how quipucamayoc builds quipu charts.

Here is a small example of how this library works in a Jupyter Notebook:

import quipucamayoc as qp
import pandas as pd
data = {'item': ['item_a', 'item_b', 'item_c', 'item_d', 'item_e'],
        'amount': [1200, 150, 300, 450, 201],
        }
df = pd.DataFrame(data)

new_quipu = qp.Quipu(data=df, label='item', value='amount')
new_quipu.display()

Small quipu with five pendant cords

quipucamayoc's People

Contributors

potatodax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cameron-grams

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.