Metadata-Version: 2.1
Name: stata2python
Version: 0.0.14
Summary: Takes in Stata commands and outputs their Python equivalent
Project-URL: Repository, https://github.com/rohanjha123/data-h195/tree/main/creating_package
Project-URL: Functions, https://github.com/rohanjha123/data-h195/blob/main/creating_package/src/stata2python/funcs.py
Project-URL: Issues, https://github.com/rohanjha123/data-h195/issues
Author-email: Rohan Jha <rohan.jha@berkeley.edu>
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Python: >=2.7
Requires-Dist: regex
Description-Content-Type: text/markdown

# 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.