astro30 / valinvest Goto Github PK
View Code? Open in Web Editor NEWA value investing tool based on Warren Buffett, Joseph Piotroski and Benjamin Graham thoughts
License: MIT License
A value investing tool based on Warren Buffett, Joseph Piotroski and Benjamin Graham thoughts
License: MIT License
How to find f score for a specific date?
How do I run this on all stocks?
Followed instructions in readme. Getting this error
AttributeError: module 'valinvest' has no attribute 'Fundamental'
Launching from Visual Studio using the following code
import valinvest
aapl = valinvest.Fundamental('AAPL', 'my key)
aapl.fscore()
Hi,
Just tried the package and I get this warning.
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:469: FutureWarning: The behavior of series[i:j]
with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. series[i]
lookups. To retain the old behavior, use series.iloc[i:j]
. To get the future behavior, use series.loc[i:j]
.
return property[-years:].sum() / years
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:469: FutureWarning: The behavior of series[i:j]
with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. series[i]
lookups. To retain the old behavior, use series.iloc[i:j]
. To get the future behavior, use series.loc[i:j]
.
return property[-years:].sum() / years
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:469: FutureWarning: The behavior of series[i:j]
with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. series[i]
lookups. To retain the old behavior, use series.iloc[i:j]
. To get the future behavior, use series.loc[i:j]
.
return property[-years:].sum() / years
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:374: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.
stmt[stmt["header"] == "net_income"].groupby(
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:435: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.
stmt[stmt["header"] == "net_income"].groupby(
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:469: FutureWarning: The behavior of series[i:j]
with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. series[i]
lookups. To retain the old behavior, use series.iloc[i:j]
. To get the future behavior, use series.loc[i:j]
.
return property[-years:].sum() / years
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:291: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.
stmt[stmt["header"] == "net_income"].groupby(
/usr/local/lib/python3.9/dist-packages/valinvest/fundamentals.py:336: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.
stmt[stmt["header"] == "net_income"].groupby(
File "", line 1, in
aapl = valinvest.Fundamental('AMD', '2e90d2fed0a9dc605ffcea7ef76954ff')
File "C:\Users\Tin\Anaconda3\lib\site-packages\valinvest\fundamentals.py", line 57, in init
self.statements = self._get_financial_statements()
File "C:\Users\Tin\Anaconda3\lib\site-packages\valinvest\fundamentals.py", line 116, in _get_financial_statements
res = pd.concat([res, self._get_financial_statement(statement)])
File "C:\Users\Tin\Anaconda3\lib\site-packages\valinvest\fundamentals.py", line 80, in _get_financial_statement
df = pd.json_normalize(res["financials"])
AttributeError: module 'pandas' has no attribute 'json_normalize'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.