<jupyter_start><jupyter_text>Total AA_Meetups held in regions (2006 - 2019) AA_Meetups Regions published by The Hindu Newspaper- Chennai- Madurai- Coimbatore- Thiruvananthapuram- Tirunelveli- Engagements- Kozhikode- Hyderabad- Tirupur- Tiruchi- Kochi- Mangalore  Python Package Installation- pip install plotnine- pip install pandas Import Packages<jupyter_code>from plotnine import *
import pandas as pd
df = pd.read_csv('AA_Meets.csv')
df.head()
sources = df.groupby('Published_Region').agg('count')
source_counts = sources.Articles.sort_values(ascending=False)
source_data = pd.DataFrame(source_counts).reset_index()
sources_plot = ggplot(source_data, aes(x='Published_Region', y= 'Articles', fill='Published_Region')) + geom_col() + coord_flip()\
+ scale_fill_brewer(type='div', palette="Spectral") + theme_classic() + ggtitle('AA_Meetups Schedule held in different regions')\
+ geom_text(aes(label='Articles'), size=8, ha='right', format_string='{}')\

display(sources_plot)
ggsave(plot=sources_plot, filename='region.png', height=5, width=5, units = 'in', dpi=1000)<jupyter_output>C:\Users\GM\Anaconda3\lib\site-packages\plotnine\ggplot.py:706: UserWarning: Saving 5 x 5 in image.
  from_inches(height, units), units))
C:\Users\GM\Anaconda3\lib\site-packages\plotnine\ggplot.py:707: UserWarning: Filename: region.png
  warn('Filename: {}'.format(filename))
C:\Users\GM\Anaconda3\lib\site-packages\plotnine\scales\scale.py:93: MatplotlibDeprecationWarning: 
The iterable function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use np.iterable instead.
  if cbook.iterable(self.breaks) and cbook.iterable(self.labels):
C:\Users\GM\Anaconda3\lib\site-packages\plotnine\scales\scale.py:93: MatplotlibDeprecationWarning: 
The iterable function was deprecated in Matplotlib 3.1 and will be removed in 3.3. Use np.iterable instead.
  if cbook.iterable(self.breaks) and cbook.iterable(self.labels):
C:\Users\GM\Anaconda3\lib\site-packages\mizani\palettes.py:434: UserWarning: Warning message:Brewer palette Spectral has a maximum of 11 colorsReturning the palette you asked f[...]
StarcoderdataJupyterStructuredCleanDedup