Comments (9)
Hi @plajos1, use anaconda or winpython. Riskfolio-Lib was designed to work with scientific python distributions.
from riskfolio-lib.
Well it worked at least for one year with the standard Python 3.8. Just wanted you to know that something has changed with the new version.
from riskfolio-lib.
The problem is not Python 3.8, I think that the problem is that you are not using a scientific Python distribution. I recommend you to install anaconda or winpython and then use that distribution with Pycharm.
from riskfolio-lib.
In the Conda i encountered this:
Plotting the composition of the portfolio
ax = rp.plot_pie(w=w, title='Sharpe FM Mean Variance', others=0.05, nrow=25, cmap = "tab20",
height=6, width=10, ax=None)
AttributeError Traceback (most recent call last)
Cell In[14], line 3
1 # Plotting the composition of the portfolio
----> 3 ax = rp.plot_pie(w=w, title='Sharpe FM Mean Variance', others=0.05, nrow=25, cmap = "tab20",
4 height=6, width=10, ax=None)
File ~.conda\envs\Riskfolio\Lib\site-packages\riskfolio\src\PlotFunctions.py:643, in plot_pie(w, title, others, nrow, cmap, n_colors, height, width, ax)
641 item.columns = ["labels", "abs_values", "values"]
642 sizes2 = sizes2[sizes2.index <= l]
--> 643 sizes2 = sizes2.append(item)
645 abs_sizes = sizes2["abs_values"].tolist()
646 sizes = sizes2["values"].tolist()
File ~.conda\envs\Riskfolio\Lib\site-packages\pandas\core\generic.py:5989, in NDFrame.getattr(self, name)
5982 if (
5983 name not in self._internal_names_set
5984 and name not in self._metadata
5985 and name not in self._accessors
5986 and self._info_axis._can_hold_identifiers_and_holds_name(name)
5987 ):
5988 return self[name]
-> 5989 return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'
from riskfolio-lib.
Which version of Pandas are you using?
from riskfolio-lib.
1.5.3
from riskfolio-lib.
Use panda 1.3, until I update Riskfolio for a new pandas version.
from riskfolio-lib.
With that it works fine...
from riskfolio-lib.
Hi @plajos1,
It was fixed on version 4.2.0.
Best,
Dany
from riskfolio-lib.
Related Issues (20)
- [Feature Request] Add Treynor Black Model for Portfolio Optimization Feature HOT 1
- Optimization without return streams HOT 1
- Custom weights Contrain HOT 1
- module 'riskfolio.external.cppfunctions' has no attribute 'kurtosis_matrix' HOT 1
- Riskfolio > 4.0 bug in HRP constraints HOT 5
- example not working HOT 7
- Plotting erros HOT 1
- Constraint violation HOT 2
- LaTeX legend with ParserError HOT 3
- Constraints in Riskfolio does not work HOT 1
- Conditional Portfolio Allocation Constraints HOT 1
- Can online portfolio problems be solved? HOT 1
- Tutorial 18-AttributeError: 'NoneType' object has no attribute 'to_numpy'-- pls. look into HOT 4
- Positioning vector here HOT 1
- Examples pages HOT 1
- Report generation failing HOT 1
- create reward class as a namespace to hold different reward functions HOT 2
- support Portfolio optimization with factor model? HOT 1
- Problem while installing HOT 3
- Rewording of sentence in README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riskfolio-lib.