question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Repeated VisibleDeprecationWarning when (pandas) plotting with categorical index

See original GitHub issue

When I plot some pandas data with categorical index, with seaborn imported, I get repeated and persistent warnings like this:

VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future

example: screen shot 2018-06-05 at 14 46 31

When I don’t do the seaborn import, I just get one warning, which goes away when I re-execute the cell: screen shot 2018-06-05 at 14 46 47

Used versions:

  • pandas: 0.23.0
  • python: 2.7.15.final.0
  • numpy: 1.11.3
  • IPython: 5.7.0
  • seaborn: 0.8.1
  • matplotlib: 2.0.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
soxofaancommented, Jun 22, 2018

FYI, my current workaround to suppress repetitive user warnings in Jupyter notebooks is to add this to the notebook:

import warnings
warnings.simplefilter('once', category=UserWarning)
0reactions
mwaskomcommented, Jun 5, 2018

Nice sleuthing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

arrays - Visible Deprecation warning...?
VisibleDeprecationWarning: boolean index did not match indexed array along dimension 1; ... import warnings warnings.filterwarnings("ignore", category=np.
Read more >
[Code]-Avoid VisibleDeprecationWarning when creating a ...
I have a method which I apply on a pandas series to produce two columns as shown below. One of the returned column...
Read more >
Introduction to Data Visualization with Matplotlib
Visualizing this type of data helps clarify trends and illuminates relationships between data. 2.1 Plotting time-series data. 2.1.1 Read data ...
Read more >
What's new in 1.4.0 (January 22, 2022)
Global options under the category pd.options.styler have been extended to ... Bug in Index.get_indexer_non_unique() when index contains multiple np.nan ...
Read more >
Module 1, Practical 8 — DS Scientific Programming Lab
import pandas as pd import matplotlib.pyplot as plt import numpy as np ... We can access the index with the Series.index method and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found