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

Many warnings during execution #301

Open
benoit-cty opened this issue Sep 17, 2024 · 0 comments
Open

Many warnings during execution #301

benoit-cty opened this issue Sep 17, 2024 · 0 comments

Comments

@benoit-cty
Copy link
Contributor

benoit-cty commented Sep 17, 2024

Hi there!

I really enjoy OpenFisca-Survey-Manager, but I recently encountered an issue.

Here is what I did:

Run a simulation.

Here is what I expected to happen:

Clean log

Here is what actually happened:

Many warnings:

/python3.10/site-packages/openfisca_france/model/prelevements_obligatoires/taxe_habitation/taxe_habitation_import_baremes_locaux.py:4
/python3.10/site-packages/openfisca_france/model/prelevements_obligatoires/taxe_habitation/taxe_habitation_import_baremes_locaux.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

/python3.10/site-packages/pkg_resources/__init__.py:3117
/python3.10/site-packages/pkg_resources/__init__.py:3117
/python3.10/site-packages/pkg_resources/__init__.py:3117: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

tests/test_af_web.py: 88 warnings
/python3.10/site-packages/openfisca_survey_manager/simulations.py:1053: DeprecationWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, pd.CategoricalDtype) instead
    if (not pd.api.types.is_categorical_dtype(series)) and np.issubdtype(series.values.dtype, np.floating):

tests/test_af_web.py: 16 warnings
/python3.10/site-packages/openfisca_survey_manager/simulations.py:1067: DeprecationWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, pd.CategoricalDtype) instead
    pd.api.types.is_categorical_dtype(series)

tests/test_af_web.py: 16 warnings
/python3.10/site-packages/openfisca_survey_manager/simulations.py:484: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
  The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
  
  For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
  
  
    data_frame[value].fillna(missing_variable_default_value, inplace = True)

tests/test_af_web.py: 32 warnings
/python3.10/site-packages/openfisca_survey_manager/simulations.py:470: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
  The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.
  
  For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
  
  
    data_frame[value].fillna(missing_variable_default_value, inplace = True)

Here is data (or links to it) that can help you reproduce this issue:

Context

I identify more as a:

  • Developer (I create tools that use OpenFisca-Survey-Manager).
  • LexImpact (I model reforms to make them exist).
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