Skip to content

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' #972

Open
@christophscheuch

Description

@christophscheuch

When I use DataReader() to fetch data from "famafrench":

import pandas as pd # 2.0.3
import pandas_datareader as pdr # 0.10.0

start_date = "1960-01-01"
end_date = "2021-12-31"

factors_ff_monthly_raw = pdr.DataReader(name="F-F_Research_Data_Factors", data_source="famafrench", start=start_date, end=end_date)[0]

Then I get the following warning:

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'

Any way to avoid this warning or does the pandas-datareader module need an update?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions