Notes
Notes - notes.io |
As we have learned in this class, % sign indicates a magic function. In this case matplotlib inline lets us draw and store graphs within our notebook.
Next we have "import pylab'". Importing pylab allows for some convenience. This is included for plotting purposes.
in the next line we are telling pylab to use the first available serif font, but you can change the font to your liking.
And here we are just sorting the dataframe by the spent column in a descending order and showing the first 3 records.
So in this line we ran into some trouble. The budget graph wasnt showing up. The issue was in the "Manipulating the data frame" part. We figured out that in better_columns part, budget and campaign names were swapped around. It was suppose to be campaign name, budget,spent, clicks and impressions etc. but instead it was budget ,clicks impressions and cmp name and spent. Once we swapped them around, budget graph started showing up.
Budget graph shows a fairly even distribution
It’s bc I changed the heading positions in part 3, so they line up correctly.
For impressions, it still does. If you look at the df.describe chart, there’s a negative minimum, so that’s probably why. We’d need to filter out the negatives, which we didn’t do. Spent is in positive however, despite being in negatives before
more you spend more clicks you get.
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team