I’m on a roll, just found an even simpler way to do it using the by keyword in the hist method:
df['N'].hist(by=df['Letter'])
That’s a very handy little shortcut for quickly scanning your grouped data!
For future visitors, the product of this call is the following chart:
More Related Contents:
- Pandas bar plot with binned range
- cartesian product in pandas
- Keep other columns when doing groupby
- Convert the string 2.90K to 2900 or 5.2M to 5200000 in pandas dataframe
- What does `ValueError: cannot reindex from a duplicate axis` mean?
- Reconstruct a categorical variable from dummies in pandas
- Conditionally fill column values based on another columns value in pandas
- Remove duplicate rows from Pandas dataframe where only some columns have the same value
- Normalize columns of a dataframe
- Rename result columns from Pandas aggregation (“FutureWarning: using a dict with renaming is deprecated”)
- Quickest way to make a get_dummies type dataframe from a column with a multiple of strings
- Python Pandas, write DataFrame to fixed-width file (to_fwf?)
- Using numpy.genfromtxt to read a csv file with strings containing commas
- Plot correlation matrix using pandas
- Insert a Pandas Dataframe into mongodb using PyMongo
- How to check whether a pandas DataFrame is empty?
- Copy pandas dataframe to excel using openpyxl
- Finding label location in a DataFrame Index
- Truncate `TimeStamp` column to hour precision in pandas `DataFrame`
- Querying for NaN and other names in Pandas
- In Python pandas, start row index from 1 instead of zero without creating additional column
- plotting a histogram on a Log scale with Matplotlib
- Changing width of bars in bar chart created using seaborn.factorplot
- How to do ‘lateral view explode()’ in pandas [duplicate]
- Stratified Sampling in Pandas
- Is .ix() always better than .loc() and .iloc() since it is faster and supports integer and label access?
- How to unpack a Series of tuples in Pandas?
- pandas to_sql all columns as nvarchar
- How to upload a CSV file in FastAPI and convert it into a Pandas Dataframe?
- How to GroupBy a Dataframe in Pandas and keep Columns