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

FutureWarning: The behavior of series[i:j] with an integer-dtype index is deprecated. #8

Open
spazio opened this issue Feb 5, 2023 · 0 comments

Comments

@spazio
Copy link

spazio commented Feb 5, 2023

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(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant