Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deprecated] Series.__getitem__ treating keys as positions is deprecated. #291

Closed
1 task done
Zerohertz opened this issue May 22, 2024 · 1 comment · Fixed by #292
Closed
1 task done

[Deprecated] Series.__getitem__ treating keys as positions is deprecated. #291

Zerohertz opened this issue May 22, 2024 · 1 comment · Fixed by #292
Assignees
Labels
feat/quant fix Something isn't working

Comments

@Zerohertz
Copy link
Owner

Zerohertz commented May 22, 2024

Problem Definition

test/test_quant.py::test_quant
test/test_quant.py::test_quant_slack_bot_fdr_kor
test/test_quant.py::test_quant_slack_bot_fdr_ovs
  /usr/local/lib/python3.11/site-packages/zerohertzLib/quant/quant.py:223: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    self.signals[key][day],

test/test_quant.py::test_quant
test/test_quant.py::test_quant_slack_bot_fdr_kor
test/test_quant.py::test_quant_slack_bot_fdr_ovs
  /usr/local/lib/python3.11/site-packages/zerohertzLib/quant/quant.py:224: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    self.signals[key][day] / self.methods_cnt[key] * 100,

test/test_quant.py::test_quant
test/test_quant.py::test_quant_slack_bot_fdr_kor
test/test_quant.py::test_quant_slack_bot_fdr_ovs
  /usr/local/lib/python3.11/site-packages/zerohertzLib/quant/quant.py:226: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    possibility["logic"] = self.signals["logic"][day]

test/test_quant.py::test_quant
test/test_quant.py::test_quant_slack_bot_fdr_kor
test/test_quant.py::test_quant_slack_bot_fdr_ovs
  /usr/local/lib/python3.11/site-packages/zerohertzLib/quant/quant.py:228: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    self.signals["signals"][day],

test/test_quant.py::test_quant
test/test_quant.py::test_quant_slack_bot_fdr_kor
test/test_quant.py::test_quant_slack_bot_fdr_ovs
  /usr/local/lib/python3.11/site-packages/zerohertzLib/quant/quant.py:229: FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`
    self.signals["signals"][day] / self.total_cnt * 100,

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

To Do

  • quant module 수정
@Zerohertz
Copy link
Owner Author

Related: #290

@Zerohertz Zerohertz self-assigned this May 22, 2024
@Zerohertz Zerohertz added fix Something isn't working feat/quant labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/quant fix Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant