diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index d2ff14ea..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,21 +0,0 @@ -## Problem Description - -**Please provide a minimal, self-contained, and reproducible example:** -```python -[Paste code here] -``` - -**Please provide the full traceback:** -```python -[Paste traceback here] -``` - -**Please provide any additional information below:** - - -## Versions - -* Alphalens version: -* Python version: -* Pandas version: -* Matplotlib version: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index bf7839fa..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: CI - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: [2.7, 3.5, 3.7, 3.8] - include: - - python-version: 2.7 - pandas: 0.18.1 - numpy: 1.11.3 - scipy: 0.17.1 - statsmodels: 0.6.1 - - python-version: 3.5 - pandas: 0.18.1 - numpy: 1.11.3 - scipy: 0.17.1 - statsmodels: 0.6.1 - - python-version: 3.7 - pandas: 1.0.1 - numpy: 1.18.1 - scipy: 1.4.1 - statsmodels: 0.11.1 - - python-version: 3.8 - pandas: 1.0.1 - numpy: 1.18.1 - scipy: 1.4.1 - statsmodels: 0.11.1 - - steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - env: - PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command - run: | - python -m pip install --upgrade pip - pip install numpy==${{ matrix.numpy }} - pip install pandas==${{ matrix.pandas }} scipy==${{ matrix.scipy }} statsmodels==${{ matrix.statsmodels}} - pip install -e .[test] - - name: Lint with flake8 - run: | - flake8 - - name: Test with nose - run: | - MATPLOTLIBRC=alphalens/tests/matplotlibrc nosetests alphalens/tests diff --git a/alphalens/tears.py b/alphalens/tears.py index bf6106ff..f93142e1 100644 --- a/alphalens/tears.py +++ b/alphalens/tears.py @@ -427,7 +427,7 @@ def create_turnover_tear_sheet(factor_data, turnover_periods=None): if turnover_periods is None: input_periods = utils.get_forward_returns_columns( factor_data.columns, require_exact_day_multiple=True, - ).get_values() + ).to_numpy() turnover_periods = utils.timedelta_strings_to_integers(input_periods) else: turnover_periods = utils.timedelta_strings_to_integers(