-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
QST: I receive a message from pandas which is "FutureWarning: PeriodDtype[B] is deprecated and will be removed in a future version. Use a DatetimeIndex with freq='B' instead" #55316
Comments
Can you post a minimum reproducible example with code? |
i have data that are like this:
I must add that my data is generated by a function:
and i do: and then I get message (but the graph also!)
|
Thanks for the report. This is being addressed in #55138 so closing |
I am not sure I understand what should I do to not get this message ????
Because when I replace:
```
def data(...):
# Data generates from other dataframe
df['date'] = pd.to_datetime(df['date'])
return df.set_index('date').asfreq('b')
```
with:
```
def data(...):
# Data generates from other dataframe
df['date'] = pd.to_datetime(df['date'])
return df.set_index('date') #delete asfreq('b')
```
i do not have any warning message.
|
You can filter warnings for now while this is being fixed |
@Jacques2101 Period with freq='B' is being deprecated; that's why removing You can filter this specific warning by running: |
Research
I have searched the [pandas] tag on StackOverflow for similar questions.
I have asked my usage related question on StackOverflow.
Link to question on StackOverflow
no question like mine
Question about pandas
I receive a message from pandas 2.1.1 for which I don't know how to react. it is "FutureWarning: PeriodDtype[B] is deprecated and will be removed in a future version. Use a DatetimeIndex with freq='B' instead"
What should I do ?
The text was updated successfully, but these errors were encountered: