Tools for converting network data to pajek files
Project description
Pajek Tools
Tools for converting network data to pajek files.
Pajek is a file format for networks, typically stored in files with a .net extension. It is used as input for software such as Infomap.
Installation
Install from pypi:
pip install pajek_tools
Usage
Use the PajekWriter object:
from pajek_tools import PajekWriter writer = PajekWriter(dataframe) writer.write("output.net")
Example
from pajek_tools import PajekWriter import pandas as pd df = pd.DataFrame([["a", "b"], ["a", "c"], ["c", "a"], ["c", "d"]], columns=["source", "target"]) writer = PajekWriter(df, directed=True, citing_colname="source", cited_colname="target") writer.write("output.net")
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2020-02-12)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pajek_tools-0.1.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
Close
Hashes for pajek_tools-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8027e089a0c29f6f31093ef72fdfe170068d994cd4f7258ca6cdc4bd01c7809 |
|
MD5 | 9225e84be85b8232756cd1fc2eaca799 |
|
BLAKE2b-256 | f7a057d3c985d6c8fa31ec589ff47e80dc9e806f3a6516fbcd61c25aec62bb62 |