Where do i begin?

Tuesday, November 19, 2019

No comments

It took me a little over four hours straight to generate an output of SEVEN lines in Python! Two lines was just plain text, three lines were computations, and another two lines was formatting the output. On top of that, the script needed to include creating a text file with the output. 

  Financial Analysis
  ----------------------------
  Total Months: 86
  Total: $38382578
  Average  Change: $-2315.12
  Greatest Increase in Profits: Feb-2012 ($1926159)
  Greatest Decrease in Profits: Sep-2013 ($-2196167)

We just wrapped up the first week of learning the language. Before starting the bootcamp, I spent a good amount of time learning the basics of Python through online courses, YouTube tutorials, and web articles. I have a degree in Computer Science so picking up the concepts wasn't too difficult. But for someone who has absolutely no STEM background, I would understand how challenging it can get to grasp so much information in so little time. So I was asked, "Where do I begin?".

I am a complete beginner to Python as well and below are the steps I did to perform the task:

1) Know the basics. I've already done so as I mentioned above. There are so many free resources online. One YouTube channel I particularly liked was: CS Dojo. The Python Tutorial documentation is a good one. You can also try courses on Udacity or Codecademy for hands-on learning. The Coding Bat site is great practice! These are just a few of hundreds of resources online. 

2) Solve the problem one line at a time. The text output was pretty straightforward. To do the computations, I did the next step.

3) The data source only contained two columns and about 270 rows. So I used Excel to solve the computational problems to make sure I am getting the correct solution. Obviously, if the data set was too large this would not be possible. But since this is a beginner assignment I took the Excel route. Now that I have the correct solution, next step was how to convert that into Python code.

4) For the most part, I used lists and list comprehension. I knew what I wanted to do, but I didn't have the knowledge yet on what functions existed (if there were any) to get a specific output. So if there is something you do not know, Google or Stack Overflow is your best friend. If you ask the right questions, you will find what you are looking for. And to know the right questions, you will have known what it is you specifically want to happen. 

The four hours was time well spent, my Python knowledge just increased. Assignment number one is done! I continue to try to improve my script so off to code some more.



Read More

Kickstart your chart

Saturday, November 16, 2019

No comments
Over $2 billion has been raised using the massively successful crowdfunding service, Kickstarter, but not every project has found success. Of the more than 300,000 projects launched on Kickstarter, only a third have made it through the funding process with a positive outcome.

Getting funded on Kickstarter requires meeting or exceeding the project's initial goal, so many organizations spend months looking through past projects in an attempt to discover some trick for finding success.

Based on a database of 4,000 past projects between 2009 to 2017, the two charts below (using Microsoft Excel) shows a count of how many campaigns were successful, failed, canceled, or are currently live.

Let's focus on the labeling, which do you think is more effective to your audience?

The Horizontal Bar Chart:

The Vertical Bar Chart:



Did you tilt your head to the left to read the labels on the bottom on the second image? Can you imagine your audience suddenly tilting their heads as soon as you present this data? That would be a funny sight. The horizontal bar chart on the other hand is a lot easier to read. This chart is especially useful if the category names are long such as those above. The text is written from left to right, as most people read, making the graph more legible for your audience. By the time they get to the data, they already know what it represents. I've also decluttered the chart by removing the border.

Read More