Giter VIP home page Giter VIP logo

506-titanic-mini-project's Introduction

Visualizing the Titanic Disaster

Load the Titanic dataset (olympics.csv)

Question - 1

Create a dataframe with following data cleanup to make this file redable.

  • Create a function load_data to read CSV file and convert CSV data to dataframe.
  • Return dataframe.

Question - 2

Create a pie chart presenting the male/female proportion.

  • create a function draw_plot.
  • Sum the instances of males and females
  • Put them into a list called proportions
  • Create a pie chart
  • Set plot title to ‘Sex Proportion’
  • Draw plot object. Image should match with the file provided inside files directory with name draw_plot

Question - 3

Create a histogram with the Fare paid

  • create a function draw_histogram.
  • Sort the fare value
  • Create bins interval using numpy
  • Set the title and labels
  • Draw plot object. Image should match with the file provided inside files directory with name draw_histogram

506-titanic-mini-project's People

Contributors

sangamangreg avatar

Watchers

James Cloos avatar Ganesh Badhe 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.