Stata2Python
This package takes in Stata commands and outputs their Python equivalents. It currently supports the following commands: -
- ttest (doing a t-test)
- gen (generating new columns)
- describe (describing the data)
- corr (correlation matrix)
- scatter (make a scatter plot)
- hist (make a histogram)
- reg (run a regression)
Example usage via terminal
pip install --upgrade stata2python
python3
>>> from stata2python import stata2python
>>> stata2python("reg wage exp i.female, vce(cluster education)", "la")
The function stata2python takes in a Stata command as a string, followed by (optionally) the name of a Python DataFrame as a string, and outputs the relevant Python equivalent to the Stata command.
Metadata
Release files for stata2python 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stata2python-0.0.16.tar.gz | 4.6 kB | Without provenance | Details for stata2python-0.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stata2python-0.0.16-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for stata2python-0.0.16-py2.py3-none-any.whl |
Total release size: 12.5 kB
Release files / stata2python-0.0.16.tar.gz
| Download URL | stata2python-0.0.16.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75a6b41183f7714b88036ba4f0cb8dbd86f51984eb778b7d39542d3ba8f4d9fb
|
|
BLAKE2b-256 checksum How to use checksums |
fec5f29dbd6ad7c6293f536c83cca1b03856047a7f784b9c2258528bc6b9a665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / stata2python-0.0.16-py2.py3-none-any.whl
| Download URL | stata2python-0.0.16-py2.py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
17f39daf5d986092636d7b241438800f832196decd285bb7ac37ca84e649bf8c
|
|
BLAKE2b-256 checksum How to use checksums |
4ad9b39db958bbabd8b2fe5de06f469af3deb7c22b456d6535a9507e5bf2b594
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for stata2python 0.0.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.