Deprecation warning in Jupyter notebook for use of ~
with Pandas series.
#6810
Labels
waiting for user response
Requires more information from user
Environment data
Code Snippet
I am writing the following in a Jupyter notebook cell in VSCode:
where
data
is a Pandas Series.Repro Steps
This is quite hard to reproduce in any other notebook except here in the notebook where the screenshot below was taken. Other Pandas series in this notebook do not seem to have the same problem.
Expected behavior
I do not expect a deprecation warning since
data
is a Pandas series. As far as I know the use of the boolean negation operator is only being deprecated for Python bool types.Actual behavior
This is formatted as shown in the following screenshot with a deprecation warning:
The warning says
Strangely, if I add any command assigning to
data
prior to this cell, the strike-through formatting and deprecation warning goes away:Hypothesis
It thinks
data
is a Python bool.The text was updated successfully, but these errors were encountered: