Reputation: 739
I have a pandas DataFrame. Is there any way to add those bars on the dataFrame?
For example if the code would be like this:
import pandas as pd df = pd.DataFrame([[1, 3], [3, 7], [4, 1]], columns = [A, B])
Upvotes: 0
Views: 38
Reputation: 88236
No you cannot do that, as a pandas dataframe is a data structure, thus it has to be constituted or built by numpy arrays, a dict, or DataFrame. What you can do is generate a bar plot and add text to it from the dataframe values.
Upvotes: 1