Coder Social home page Coder Social logo

python-challenge's Introduction

PyBank

Analyze the financial records of your company using Python Scripting

Dataset

Budget Data containg Date and Profit/Loss

Tasks

Create a Python script that analyzes the records to calculate each of the following:

  • The total number of months included in the dataset

  • The net total amount of "Profit/Losses" over the entire period

  • The average of the changes in "Profit/Losses" over the entire period

  • The greatest increase in profits (date and amount) over the entire period

  • The greatest decrease in losses (date and amount) over the entire period

In addition, script should both print the analysis to the terminal and export a text file with the results.

Solution

It performs all the tasks in the above section and outputs the analysis on terminal and to the analysis file

PyPoll

Dataset

Election Data containg Voter ID, County, and Candidate

Tasks

Create a Python script that analyzes the votes and calculates each of the following:

  • The total number of votes cast

  • A complete list of candidates who received votes

  • The percentage of votes each candidate won

  • The total number of votes each candidate won

  • The winner of the election based on popular vote.

In addition, script should both print the analysis to the terminal and export a text file with the results.

Solution

It performs all the tasks in the above section and outputs the analysis on terminal and to the analysis file

PyBoss

You get to be the boss !

You oversee hundreds of employees across the country developing Tuna 2.0, a world-changing snack food based on canned tuna fish. The company recently decided to purchase a new HR system, and the new system requires employee records be stored completely differently.

Dataset

Employee data file holding employee records

Tasks

The required conversions are as follows:

  • The Name column should be split into separate First Name and Last Name columns.
  • The DOB data should be re-written into MM/DD/YYYY format.
  • The SSN data should be re-written such that the first five numbers are hidden from view.
  • The State data should be re-written as simple two-letter abbreviations.

Input Format

Emp ID,Name,DOB,SSN,State
214,Sarah Simpson,1985-12-04,282-01-8166,Florida
15,Samantha Lara,1993-09-08,848-80-7526,Colorado
411,Stacy Charles,1957-12-20,658-75-8526,Pennsylvania

Output Format

Emp ID,First Name,Last Name,DOB,SSN,State
214,Sarah,Simpson,12/04/1985,***-**-8166,FL
15,Samantha,Lara,09/08/1993,***-**-7526,CO
411,Stacy,Charles,12/20/1957,***-**-8526,PA

It performs all the tasks in the above section and outputs to the csv file

PyParagraph

You get to play the role of chief linguist at a local learning academy

As chief linguist, you are responsible for assessing the complexity of various passages of writing, ranging from the sophomoric Twilight novel to the nauseatingly high-minded research article. Having read so many passages, you've since come up with a fairly simple set of metrics for assessing complexity.

Tasks

Create a Python script to automate the analysis of any such passage using these metrics. Your script will need to do the following:

  • Import a text file filled with a paragraph of your choosing.
  • Assess the passage for each of the following:
    • Approximate word count
    • Approximate sentence count
    • Approximate letter count (per word)
    • Average sentence length (in words)

Solution

It performs all the tasks in the above section and outputs the analysis on terminal and to the analysis file

python-challenge's People

Contributors

bnarath avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.