You can plot several columns at once by supplying a list of column names to the plot
‘s y
argument.
df.plot(x="X", y=["A", "B", "C"], kind="bar")

This will produce a graph where bars are sitting next to each other.
In order to have them overlapping, you would need to call plot
several times, and supplying the axes to plot to as an argument ax
to the plot.
import pandas as pd import matplotlib.pyplot as plt import numpy as np y = np.random.rand(10,4) y[:,0]= np.arange(10) df = pd.DataFrame(y, columns=["X", "A", "B", "C"]) ax = df.plot(x="X", y="A", kind="bar") df.plot(x="X", y="B", kind="bar", ax=ax, color="C2") df.plot(x="X", y="C", kind="bar", ax=ax, color="C3") plt.show()

Related Posts:
- pandas DataFrame “no numeric data to plot” error
- pandas: merge (join) two data frames on multiple columns
- How to customize a scatter matrix to see all titles?
- How to Read .txt in Pandas
- Add Legend to Seaborn point plot
- Plot pie chart and table of pandas dataframe
- Type error: cannot convert the series to
- Change figure size and figure format in matplotlib
- Add Legend to Seaborn point plot
- TypeError: ‘DataFrame’ object is not callable
- Modify the legend of pandas bar plot
- How to add title to seaborn boxplot
- How to save a Seaborn plot into a file
- Plot correlation matrix using pandas
- AttributeError: ‘Series’ object has no attribute ‘reshape’
- ImportError: No module named ‘xlrd’
- Moving Average Pandas
- Pandas dataframe groupby plot
- How to print a specific row of a pandas DataFrame?
- alueError: ordinal must be >= 1
- SyntaxError: unexpected EOF while parsing
- How to use filter, map, and reduce in Python 3
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- how to sort pandas dataframe from one column
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to open a file using the open with statement
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- ImportError: DLL load failed: The specified module could not be found
- ImportError: DLL load failed: The specified module could not be found
- How to install pip with Python 3?
- What is the difference between rw+ and r+
- Renaming column names in Pandas
- How to reset index in a pandas dataframe? [duplicate]
- Delete a column from a Pandas DataFrame
- Python – TypeError: ‘int’ object is not iterable
- Import Error: No module named numpy
- How to deal with SettingWithCopyWarning in Pandas
- How to deal with SettingWithCopyWarning in Pandas
- Constructing pandas DataFrame from values in variables gives “ValueError: If using all scalar values, you must pass an index”
- How to iterate over rows in a DataFrame in Pandas
- pandas read_json: “If using all scalar values, you must pass an index”
- How to iterate over rows in a DataFrame in Pandas
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- Relative imports – ModuleNotFoundError: No module named x
- Purpose of “%matplotlib inline”
- TypeError: a bytes-like object is required, not ‘str’ when writing to a file in Python3
- Writing a pandas DataFrame to CSV file
- How to uninstall a package installed with pip install –user
- Relative imports in Python 3
- Purpose of “%matplotlib inline”
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- TypeError: only size-1 arrays can be converted to Python scalars (matplotlib)
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- Showing an image with pylab.imshow()
- Writing a pandas DataFrame to CSV file
- Best way to convert string to bytes in Python 3?
- Best way to convert string to bytes in Python 3?
- What does the list() function do in Python?
- TypeError: not all arguments converted during string formatting python
- How do you change the size of figures drawn with Matplotlib?
- Adding new column to existing DataFrame in Python pandas
- Modifing data while using iterrows() does not work
- PermissionError: [Errno 13] Permission denied
- ImportError: No module named pandas
- What is setup.py?
- How is Anaconda related to Python?
- How to change the order of DataFrame columns?
- FileNotFoundError: [WinError 2] The system cannot find the file specified:
- RuntimeWarning: invalid value encountered in divide
- How to change the order of DataFrame columns?
- Invalid character in identifier
- ImportError: No module named pandas. Pandas installed pip
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- What does `ValueError: cannot reindex from a duplicate axis` mean?
- Pandas DataFrame Groupby two columns and get counts
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- How can I use the apply() function for a single column?
- How to show all columns’ names on a large pandas dataframe?
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- Convenient way to deal with ValueError: cannot reindex from a duplicate axis
- ValueError: Unknown label type: ‘continuous’
- How to groupby based on two columns in pandas?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ImportError: No module named matplotlib.pyplot
- Using Python 3 in virtualenv
- How to fix IndexError: invalid index to scalar variable
- How to correct TypeError: Unicode-objects must be encoded before hashing?
- “Series objects are mutable and cannot be hashed” error
- How to remove EOFError: EOF when reading a line?
- matplotlib savefig() plots different from show()
- How to deal with SettingWithCopyWarning in Pandas
- WinError 2 The system cannot find the file specified (Python)
- Merging dataframes on index with pandas
- ImportError: No module named pandas
- hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
- TypeError: ‘Series’ objects are mutable, thus they cannot be hashed problemwith column
- TypeError: cannot unpack non-iterable NoneType object