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

TypeErrors in "A quick example" #589

Open
bsiegelwax opened this issue Mar 18, 2024 · 0 comments
Open

TypeErrors in "A quick example" #589

bsiegelwax opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bsiegelwax
Copy link

Describe the bug

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pandas/core/ops/array_ops.py](https://localhost:8080/#) in _na_arithmetic_op(left, right, op, is_cmp)
    164     try:
--> 165         result = func(left, right)
    166     except TypeError:

15 frames
TypeError: unsupported operand type(s) for /: 'str' and 'NoneType'

During handling of the above exception, another exception occurred:

TypeError                                 Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pandas/core/ops/array_ops.py](https://localhost:8080/#) in _masked_arith_op(x, y, op)
    108         # See GH#5284, GH#5035, GH#19448 for historical reference
    109         if mask.any():
--> 110             result[mask] = op(xrav[mask], yrav[mask])
    111 
    112     else:

TypeError: unsupported operand type(s) for /: 'str' and 'str'

Expected behavior
I expected to see the output on https://github.com/robertmartin8/PyPortfolioOpt

Code sample
I used the "A quick example" on https://github.com/robertmartin8/PyPortfolioOpt

Operating system, python version, PyPortfolioOpt version
Google Colab with fresh pip install

Additional context
Add any other context about the problem here.

@bsiegelwax bsiegelwax added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant