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.

PerformanceWarning: what is actually the problem I can change?

See original GitHub issue

I get several PerformanceWarnings when I store my dataframe in a hdfstore:

C:\portabel\Python27\lib\site-packages\pandas\io\pytables.py:1788: PerformanceWarning: 
your performance may suffer as PyTables will pickle object types that it cannot map
directly to c-types [inferred_type->mixed,key->axis0]

  warnings.warn(ws, PerformanceWarning)
C:\portabel\Python27\lib\site-packages\pandas\io\pytables.py:1788: PerformanceWarning: 
your performance may suffer as PyTables will pickle object types that it cannot map
directly to c-types [inferred_type->mixed,key->block0_values]

  warnings.warn(ws, PerformanceWarning)
C:\portabel\Python27\lib\site-packages\pandas\io\pytables.py:1788: PerformanceWarning: 
your performance may suffer as PyTables will pickle object types that it cannot map
directly to c-types [inferred_type->unicode,key->block0_items]

What I can’t get from this is what column gives me these problems, at least I don’t have any “block0” columns 😃 It would be nice if this warnings can give me an indicator what i can actually do about this warnings.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:5
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

11reactions
jrebackcommented, May 21, 2013

the warning is just to alert the user that u r basically pickling those fields rather than storing then in a c-type u can filter the warnings as well

import warnings
warnings.filterwarnings('ignore',category=pandas.io.pytables.PerformanceWarning)
3reactions
jrebackcommented, Jul 29, 2015

make sure you are storing with format=‘table’

py3 handles the Unicode

pls show code and version if this doesn’t work

Read more comments on GitHub >

github_iconTop Results From Across the Web

HDFStore with string columns gives issues - Stack Overflow
How can I fix the issue, i.e. change the dtype for string columns so that HDFStore can treat it like a string column?...
Read more >
Fix Bluestacks Performance Warning Due To The ... - YouTube
7.But simply choose the ram size to 4gb,and click to save this changes. 8.After the restarting is completed,finally this problem is solved.
Read more >
BlueStacks is Currently Limited to using 1 CPU Core - YouTube
Your browser can 't play this video. ... How to fix BlueStacks 5 Performance Warning - BlueStacks is Currently Limited to using 1...
Read more >
SteamNetworkingSockets lock held for X ms (Performance ...
I use openSUSE Thumbleweed and run the native version of CSGO. I'm still not sure what actually causes the error and will keep...
Read more >
Performance warning: There are more than 100 preview scenes.
There might be code not releasing the preview scene after creating ... Because when starting Unity, none of the previews are actually shown....
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