Microsoft/Google Forms の回答CSVを評点型コンジョイント分析用のlong形式DataFrameに変換するツール
Project description
py4conjoint
Microsoft/Google Forms の回答CSVを評点型コンジョイント分析用のlong形式DataFrameに変換するPythonパッケージです。
インストール
pip install py4conjoint
Google Colab では:
!pip install py4conjoint
使い方
import pandas as pd
import py4conjoint as pc
# カード設計(プロファイル)を作成
cards = pd.DataFrame({ # P1 P2 P3 P4
"price": [6, 10, 6, 10],
"os": ["android", "apple", "apple", "android"],
"camera": ["標準", "標準", "高性能", "高性能"]
}, index=["P1", "P2", "P3", "P4"])
# Microsoft Forms の回答xlsxをlong形式に変換(デフォルト)
df = pc.forms_to_conjoint_data(
responses_file = "responses.xlsx",
n_cards = 4,
attributes = cards,
respondent_cols= {"性別": "gender"},
)
# Google Forms の回答CSVをlong形式に変換
df = pc.forms_to_conjoint_data(
responses_file = "responses.csv",
n_cards = 4,
attributes = cards,
respondent_cols= {"性別": "gender"},
forms = "google",
)
出力形式
回答者ID プロファイルID rating gender price os camera
0 1 P1 4 女性 6 android 標準
1 1 P2 3 女性 10 apple 標準
...
ライセンス
MIT
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
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 py4conjoint-0.1.2.tar.gz.
File metadata
- Download URL: py4conjoint-0.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54d293d0689b462eb7a8afa9b898f08c1d2ecdac4ac8cec0f5011bf5d8a025e7
|
|
| MD5 |
e3a6ef057324f7aa6487e6c0a395c2c7
|
|
| BLAKE2b-256 |
cd4b3539c1c9c508eeac9d491cf9591df8f2df7b6671853f06ca363d86fed3a3
|
Provenance
The following attestation bundles were made for py4conjoint-0.1.2.tar.gz:
Publisher:
publish.yml on Py4Conjoint/py4conjoint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py4conjoint-0.1.2.tar.gz -
Subject digest:
54d293d0689b462eb7a8afa9b898f08c1d2ecdac4ac8cec0f5011bf5d8a025e7 - Sigstore transparency entry: 1241593905
- Sigstore integration time:
-
Permalink:
Py4Conjoint/py4conjoint@daf397b5cd3030de775f99d6a0892b96f1b776ad -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Py4Conjoint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@daf397b5cd3030de775f99d6a0892b96f1b776ad -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file py4conjoint-0.1.2-py3-none-any.whl.
File metadata
- Download URL: py4conjoint-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35ce48f7546496749399b624ac5a97f050e93bb2f28be129ff071aa7a9dfd094
|
|
| MD5 |
5804ffcc72f5bfc5191a7989e6eff682
|
|
| BLAKE2b-256 |
b39ff7183e115c54accc47898ad3c55facd356d7bb9cf67f7cfb966bc75e66dd
|
Provenance
The following attestation bundles were made for py4conjoint-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Py4Conjoint/py4conjoint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
py4conjoint-0.1.2-py3-none-any.whl -
Subject digest:
35ce48f7546496749399b624ac5a97f050e93bb2f28be129ff071aa7a9dfd094 - Sigstore transparency entry: 1241593959
- Sigstore integration time:
-
Permalink:
Py4Conjoint/py4conjoint@daf397b5cd3030de775f99d6a0892b96f1b776ad -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Py4Conjoint
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@daf397b5cd3030de775f99d6a0892b96f1b776ad -
Trigger Event:
workflow_dispatch
-
Statement type: