Comments (4)
Adding to that, I even tried creating manually the dataframe:
dfObj = pd.DataFrame(columns=['Allocation', 'Name'])
dfObj = dfObj.append({'Allocation': 20.25, 'Name': 'EQQQ'}, ignore_index=True)
dfObj = dfObj.append({'Allocation': 10.97, 'Name': 'IWFM'}, ignore_index=True)
dfObj = dfObj.append({'Allocation': 29.44, 'Name': 'IGLT'}, ignore_index=True)
dfObj = dfObj.append({'Allocation': 28.56, 'Name': 'IBTM'}, ignore_index=True)
dfObj = dfObj.append({'Allocation': 9.67, 'Name': 'SGLN'}, ignore_index=True)
dfObj = dfObj.append({'Allocation': 1.11, 'Name': 'SMT'}, ignore_index=True)
And trying to pass it as pf_allocation to build_portfolio, same error. It must be something very obvious I can't see...but I tried and I really don't understand what.
Might be a good idea to provide some function in portfolio management to manually alter weights of an existing portfolio instance?
from finquant.
Found it..sorry...I knew was something stupid I couldn't see...found today, name different STM/SMT between the two .csv files!
from finquant.
Hey there, thanks for giving FinQuant a try, and reporting an issue. Even better that you found the mistake yourself. As for your suggestion, I am going to create an issue to add said feature: allow user to alter weights/allocation of existing portfolio.
from finquant.
Thanks @fmilthaler I think that would be great function also because FinQuant has most of the function needed to analyse a portfolio, so it's great as portfolio analyser/backtesting as much as it is for optimisation.
Now that I found the problem I'm greatly expanding my portfolio analysis system and FinQuant is a good part of it :-)
from finquant.
Related Issues (20)
- Check feature/stocks-clustering
- How to use with lib plotly HOT 2
- Parallelize some heavy computations
- Update documentation
- Momentum Indicators - RSI, MACD HOT 8
- Unit Test Revamp - Efficient Frontier and Monte Carlo HOT 1
- Auto versioning pipeline fails from fork
- MPLFinance HOT 2
- Benchmarking Performance HOT 8
- Depciation warning 5.0 HOT 1
- Depreciation pandas HOT 6
- example/Example-Build-Portfolio-from-web.py fails HOT 1
- Quandl is dead, remove it HOT 12
- Create an Asset parent class for Stock and Market
- Stock.data should be of type pandas.Series
- Set up pylint HOT 1
- Use type hints consistently HOT 3
- Detect and fix issues with mypy and pylint HOT 4
- Create GitHub workflow to automatically build/push a new release to pypi
- Set up another GitHub Actions workflow for pylint
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 finquant.