Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ name: Python package

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
1 change: 0 additions & 1 deletion ivtable.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Observations & 428 & 428 & 428 \\
$R^2$ & 0.118 & 0.173 & 0.093 \\
F Statistic & 57.196*** & 89.258*** & 2.849* \\
Model & OLS & OLS & IV-2SLS \\
\bottomrule
\multicolumn{4}{l}{{\small \textit{*p$<$0.1, **p$<$0.05, ***p$<$0.01}}}\\
\end{tabular}
Binary file modified main.pdf
Binary file not shown.
6 changes: 6 additions & 0 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
\input{panel.tex}
\end{table}

\begin{table}
\centering
\caption{\texttt{pyfixest} Table}
\input{pyfixest_tables.tex}
\end{table}

\pagebreak
\input{longtable.tex}

Expand Down
22 changes: 22 additions & 0 deletions pyfixest_tables.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
% You must add \usepackage{booktabs} to your LaTex document for table to compile.
% If you use color in your formatting, you must also add \usepackage{xcolor} to the preamble.

% If you are making a longtable, you must add \usepackage{longtable} to the preamble.

\begin{tabular}{lcc}
\toprule
\toprule
& \multicolumn{2}{c}{Dependent Variable: Y} \\
\cmidrule(lr){2-3}
& (1) & (2)\\
\midrule
X1 & -0.919*** & -0.007 \\
& (0.066) & (0.035) \\
X2 & & -0.015 \\
& & (0.010) \\
\midrule
Observations & 997 & 997 \\
$R^2$ & 0.609 & \\
\bottomrule
\multicolumn{3}{l}{{\small \textit{*p$<$0.1, **p$<$0.05, ***p$<$0.01}}}\\
\end{tabular}
14 changes: 13 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,21 @@ dependencies = [
"numpy",
"pandas>=2",
"scipy",
"unicodeit",
]

[project.optional-dependencies]
test = [
"pytest>=6.0",
"pytest-cov>=2.0",
"statsmodels",
"linearmodels",
"unicodeit",
"pyfixest",
"faker",
]

dev = [
"statstables[test]"
]

[project.urls]
Expand Down
3 changes: 0 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
numpy
pandas
scipy
statsmodels
linearmodels
unicodeit
Faker
Loading