Monetizing Machine Learning by Manuel Amunategui & Mehdi Roopaei

Monetizing Machine Learning by Manuel Amunategui & Mehdi Roopaei

Author:Manuel Amunategui & Mehdi Roopaei
Language: eng
Format: epub
ISBN: 9781484238738
Publisher: Apress


Listing 6-10Aggregating by Months

Figure 6-5Month-of-the-year total reported crime counts table

As expected, we have 12 groups. Let’s plot them and see what month has the most reported crime (Listing 6-11 and Figure 6-6).plt.barh(crime_by_month.index, crime_by_month['Month_of_year'], align="center", alpha=0.5)

objects = ['Jan','Feb','Mar','Apr','Ma','Jun','Jul','Aug','Sept','Oct','Nov','Dec']

plt.yticks(crime_by_month.index, objects)

plt.xlabel('Crime Reports')

plt.title('Total Crime By Month')

plt.show()



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.