half (not split!) violin plots in seaborn?

Currently seaborn offers functionality for split violinplots by setting split=True, according to a hue variable. I ...

KeyError: False in pandas dataframe?

import pandas as pd businesses = pd.read_json(businesses_filepath, lines=True, encoding='utf_8') restaurantes = bus...

python stacked bar chart using categorical data?

I have a Pandas dataframe (1800 obs) that looks something like this: A B C D 1 CL0 CL1 ...

Strings in a DataFrame, but dtype is object?

Why does Pandas tell me that I have objects, although every item in the selected column is a string — even after e...

Pandas Replace NaN with blank/empty string?

I have a Pandas Dataframe as shown below: 1 2 3 0 a NaN read 1 b l unread 2 c NaN re...

How to convert matrix to pandas data frame?

I'm trying to convert a matrix into a pandas data frame: matrixA={} matrixA[0,0]='a' matrixA[0,1]='b' matrixA[1,0]=...

Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support?

I am trying to read a .xlsx with pandas, but get the follwing error: data = pd.read_excel(low_memory=False, io="Dat...

Python: Pandas pd.read_excel giving ImportError: Install xlrd >= 0.9.0 for Excel support?

I am trying to read a .xlsx with pandas, but get the follwing error: data = pd.read_excel(low_memory=False, io="Dat...

how to create dummies for certain columns by pandas get_dummies() method??

df = pd.DataFrame({'A': ['x', 'y', 'x'], 'B': ['z', 'u', 'z'], 'C': ['1', '2', '3'], ...

How to add pandas data to an existing csv file??

I want to know if it is possible to use the pandas to_csv() function to add a dataframe to an existing csv file. The...

In Python, how do I determine if an object is iterable??

Is there a method like isiterable? The only solution I have found so far is to call hasattr(myObj, '__iter__') Bu...

How can I disable the label when plotting pandas data??

I tried using label=None in the plot command, in which case matplotlib chose the key of the data as a label. I find ...

pandas, melt, unmelt preserve index?

I've got a table of clients (coper) and asset allocation (asset) A = [[1,2],[3,4],[5,6]] idx = ['coper1','coper2','...