Skip to main content

BourdieuVectors library for inferring vectors

Project description

bourdieuvectors is a library that allows to inferr bourdieuvectors. Usage see https://bourdieuvectors.com/.

Installation

Install this library using pip.

Supported Python Versions

Python >= 3.6

Mac/Linux

pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install bourdieuvectors

Windows

pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install bourdieuvectors

Example Usage

Extends a Pandas DataFrame with the vectors.

import pandas as pd
from bourdieuvectors import get_bourdieu_vector

data = pd.DataFrame({
    "cultural_event": ["american football"]
})

vector_df = data["cultural_event"].apply(get_bourdieu_vector).apply(pd.Series)
data_with_vectors = pd.concat([data, vector_df], axis=1)

print(data_with_vectors)
data_with_vectors.to_csv("bourdieuvectors_data.csv")

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

bourdieuvectors-0.1.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

bourdieuvectors-0.1.1-py2.py3-none-any.whl (15.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bourdieuvectors-0.1.1.tar.gz.

File metadata

  • Download URL: bourdieuvectors-0.1.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.12

File hashes

Hashes for bourdieuvectors-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18a542a6348b5ddebf24c4dde7ea6139e8978f7d869e30bafaa904502370a8c0
MD5 931654ec35391cc19e4f4d21e2323595
BLAKE2b-256 067efaf33a0cdabd74326a5c29ba6e2d6a58488c9b1ecb76509530f71202da52

See more details on using hashes here.

File details

Details for the file bourdieuvectors-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bourdieuvectors-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 839b2c3f0530b03496453e1762cb0daaba3121224f87508e000a565392fe1047
MD5 bfa449469df77dae8f9a33bac18cf5c4
BLAKE2b-256 af4912587f6a6a8f8e0a8af74e9aa7bddcc6eb18e7c3ff3ece144f5b29a3aaed

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