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.

FutureWarning in Pandas 0.24.0

See original GitHub issue

Pandas 0.24.0 throws a FutureWarning when used with Altair 2.3.0 here, which prevents the chart being rendered correctly. The message:

[my_virtualenv]/lib/python3.6/site-packages/altair/utils/core.py:294: FutureWarning: A future version of pandas will default to `skipna=True`. To silence this warning, pass `skipna=True|False` explicitly.

I notice that Altair’s requirements.txt doesn’t specify version. Would it be worth doing so?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Jan 28, 2019

I pushed a fix in #1315

0reactions
jakevdpcommented, Jan 28, 2019

Fix is to explicitly pass skipna=False in this line: https://github.com/altair-viz/altair/blob/c4495f965db621e8bd0c2b3dd0390ef30ad33456/altair/utils/core.py#L72

We’ll have to do it carefully, though, because prior to pandas 0.20.0, infer_dtype takes no keyword arguments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contributing to pandas — pandas 0.24.0 documentation
Trying the bug-producing code out on the master branch is often a worthwhile exercise to confirm the bug still exists. It is also...
Read more >
What's new in 0.24.0 (January 25, 2019) - Pandas
We can construct a Series with the specified dtype. The dtype string Int64 is a pandas ExtensionDtype . Specifying a list or array...
Read more >
What's new in 1.4.0 (January 22, 2022) - Pandas
What's new in 1.4.0 (January 22, 2022)#. These are the changes in pandas 1.4.0. See Release notes for a full changelog including other...
Read more >
Working with Text Data — pandas 0.24.0 documentation
Working with Text Data¶. Series and Index are equipped with a set of string processing methods that make it easy to operate on...
Read more >
Indexing and Selecting Data — pandas 0.24.0 documentation
The Python and NumPy indexing operators [] and attribute operator . provide ... Starting in 0.21.0, pandas will show a FutureWarning if indexing...
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