Giter VIP home page Giter VIP logo

Comments (9)

dcajasn avatar dcajasn commented on May 25, 2024

Hi @plajos1, use anaconda or winpython. Riskfolio-Lib was designed to work with scientific python distributions.

from riskfolio-lib.

plajos1 avatar plajos1 commented on May 25, 2024

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.

dcajasn avatar dcajasn commented on May 25, 2024

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.

plajos1 avatar plajos1 commented on May 25, 2024

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.

dcajasn avatar dcajasn commented on May 25, 2024

Which version of Pandas are you using?

from riskfolio-lib.

plajos1 avatar plajos1 commented on May 25, 2024

1.5.3

from riskfolio-lib.

dcajasn avatar dcajasn commented on May 25, 2024

Use panda 1.3, until I update Riskfolio for a new pandas version.

from riskfolio-lib.

plajos1 avatar plajos1 commented on May 25, 2024

With that it works fine...

from riskfolio-lib.

dcajasn avatar dcajasn commented on May 25, 2024

Hi @plajos1,

It was fixed on version 4.2.0.

Best,
Dany

from riskfolio-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.