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.0.tar.gz
(15.8 kB
view details)
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 bourdieuvectors-0.1.0.tar.gz.
File metadata
- Download URL: bourdieuvectors-0.1.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
810e8366f4945a33cd1c8dfe0bb896d00f36ffbfc33b605bee4f208cfaf55401
|
|
| MD5 |
e25e7737f279b973c1fa55769ca00ba8
|
|
| BLAKE2b-256 |
fa98ac615920fe7f122c3cabcc836eda667120ff51bb9aeaf074c864887b124b
|
File details
Details for the file bourdieuvectors-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: bourdieuvectors-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f646ff7c890b2ecbd13f73a8e02f939a840f80c644ed39bf2901c7d5f074c799
|
|
| MD5 |
a3a6bf982664352a8295e1fb3ebacad1
|
|
| BLAKE2b-256 |
4f9b8697e0cf2c6fedeb59e0894a3fb79ec0c56cbdca79352a1f91d1902cd9df
|