irpf-investidor icon indicating copy to clipboard operation
irpf-investidor copied to clipboard

Remove warnings

Open staticdev opened this issue 1 year ago • 0 comments

When we run the code there are warnings from pandas 2.

/home/user/pyenv/versions/3.11.1/lib/python3.11/site-packages/irpf_investidor/report_reader.py:69: FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version. Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'.
  basic_df = pd.read_excel(
/home/user/pyenv/versions/3.11.1/lib/python3.11/site-packages/irpf_investidor/report_reader.py:98: FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version. Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'.
  df = pd.read_excel(

Watch: https://github.com/pandas-dev/pandas/issues/50601

staticdev avatar May 26 '23 04:05 staticdev