A package to quickly embed and analyze abstract data types!
Project description
networkd
Hi! Thanks for checking out networkd. Networkd handles abstract data in bipartite form, such as songs in playlists or users and the movies they watch. These data types are very popular in studying consumer trends, building recommendation engines, and other research related to network science. However, no package in Python seems to seamlessly and efficiently embed such data into a graph/network in order to summarize the relationship between categories (songs, users) with respect to their entities (playlists, movies). networkd fills this gap by making the network/graph building process efficient and seamless!
See Usage below for an example case of how to quickly embed the data into a co-occurence matrix using the embed class. More functionality to come!
Installation
$ pip install networkd
Usage
import networkd as nd import pandas as pd
#create pandas data frame of bipartite data. (also accepts dictionary) data = pd.DataFrame({ 0: ['cat1', 'cat1', 'cat2', 'cat3', 'cat2', 'cat3'], 1: ['ent1', 'ent2', 'ent1', 'ent3', 'ent2', 'ent1'], 2: [2, 3, 4, 5, 7, 9] })
#create co-occurrence matrix (output is pandas df) nd.embed(data, self_loops = False)
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
networkd was created by Lorenzo Giamartino. It is licensed under the terms of the MIT license.
Credits
networkd was created with cookiecutter and the py-pkgs-cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file networkd-0.1.3.tar.gz.
File metadata
- Download URL: networkd-0.1.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.2 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74cd730f5864390aad342d21e24f15e33ba23be5d33d3acb632ed4f70abeac4b
|
|
| MD5 |
5135dfbfa5597a79d5a402454b4404b0
|
|
| BLAKE2b-256 |
02854e81cffb837634200bdc635f52611c246cfc98e2b37c4c4d5c1e12c431a3
|
File details
Details for the file networkd-0.1.3-py3-none-any.whl.
File metadata
- Download URL: networkd-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.2 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd63fb519b20ed4d298098c01eb652e14f6ba78feb5e0106adad038d9942e7c9
|
|
| MD5 |
e47ed15f22d370bf964b6a217e54a424
|
|
| BLAKE2b-256 |
61d7615010e3a630b10daae79a14bef92de7b922932ef912d24b2a9317702a16
|