Skip to main content

A package to quickly embed and analyze abstract data types!

Project description

networkd

Hi! Thanks for checking out networkd. networkd seamlessly builds bipartite networks/graphs. Examples of data in bipartite form include songs in playlists or users and the movies they watch. These data 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


Download files

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

Source Distribution

networkd-0.1.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

networkd-0.1.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file networkd-0.1.5.tar.gz.

File metadata

  • Download URL: networkd-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.2 Darwin/22.1.0

File hashes

Hashes for networkd-0.1.5.tar.gz
Algorithm Hash digest
SHA256 200372f68489b6ce65a94e184fabe61b4412ce1a508ad3790dcc3268c74888b6
MD5 4f23028684ad6de2614a05ef6ed85bfe
BLAKE2b-256 5fc092ecd61b951e4e501273fef5898ee833c98a8cd4e15cfab3ee9c50b5b018

See more details on using hashes here.

File details

Details for the file networkd-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: networkd-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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

Hashes for networkd-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 baae99ff614c1651ee2ae4118c67e49925fe235a9a8cd064e4594553bb47c7c7
MD5 70c3e6f27668e131d4334c09d363cbc4
BLAKE2b-256 d1d3a4dbbe980c3fad9517932e2f8b831ef26e69d978078aa471537b489ccdb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page