Skip to main content
# Graphitty

[![Circle CI](https://circleci.com/gh/sketchytechky/graphitty.svg?style=svg&circle-token=<cirlce-ci-token>)](https://circleci.com/gh/sketchytechky/graphitty)

[![Coverage Status](https://coveralls.io/repos/github/sketchytechky/graphitty/badge.svg?branch=master)](https://coveralls.io/github/sketchytechky/graphitty?branch=master)

A Python library that convert time series to direction Graph to discover the story within data.


![Example graph](apollo.png)


# Installing

To install this package, runs:

pip install git+https://github.com/sketchytechky/graphitty.git

Remember to add the following line to `requirements.txt`

git+https://github.com/sketchytechky/graphitty.git


-----------


# How to use

```
from graphitty.graphitty import Graphitty
import pandas as pd

# Example input data - see test_simple.py for example
df = pd.DataFrame(
[...],
columns=['timestamp','action', 'user_id'])

# Parsing and outputting graph
g = Graphitty(
df,
id_col='user_id',
beahivour_col='action',
ts_col='timestamp')
nx_graph = g.render()

# create the beautiful directional graph
# see https://github.com/chebee7i/nxpd for usage
import nxpd
nxpd.draw(nx_graph, show='ipynb')
```

# Running Tests

Run test with

py.test --pep8

To run test in watch mode

py.test.watch -- --pep8
# same with: ptw -- --pep8


-----------


# Related research


* Information Foraging Theory:Adaptive Interaction with Information - http://www.peterpirolli.com/Professional/About_Me_files/IFT%20Ch%201.pdf


* Jakob Nielson example on how to apply information foraging theory to understand visitor's behaviour
- http://www.useit.com/alertbox/scrolling-attention.html
- https://www.nngroup.com/articles/information-scent/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphitty-0.0.2.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file graphitty-0.0.2.tar.gz.

File metadata

  • Download URL: graphitty-0.0.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for graphitty-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b80dbdd9b9f406a713ff053b6037f7711bd54af3a26237fc23148e8d6f0850d2
MD5 4f853ea06b366225a68398d4213d9bf1
BLAKE2b-256 6afea0568e362f9862b60dfe095531d737f05ae070d7af8030d7c63575497050

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page