Coder Social home page Coder Social logo

data-cleaning-and-summarising's Introduction

# Assignment 1: Data Cleaning and Summarising
# Max Yendall : S3436993

#### Table of Contents

1. [Assumptions]- Asssumptions needing to be met to ensure code will execute
2. [Explanation of Files] - Explanation of all included files in this package
3. [Running The Scripts]
    * [Running task1_parser.py]
    * [Running task2_plotter.py]

### Content

1. [Assumptions]:
    Classes:
    This Python application uses an Object-Oriented Paradigm with the inclusion of a Header class for table look-ups.
    This file MUST BE present in order for the scripts to execute properly, as look-up tables are imported for the
    parsing functions to reference. All scripts will work if kept in the same directory.

    Typo Checking:
    Instead of hard-coding typo checking, a SequenceMatching library has been used to find the similarity between
    terms, using a similar flavour of algorithm to the Gestalt Pattern Matching algorithm. This is also explained in
    the report if anything is not clear from the code

    CSV Files:
    This Python application will read and write CSV files from the root directory ONLY. There is no user input and will
    only read a file specifically named "TeachingRatings.csv" and it must be located in the root directory of this
    application. If it is not present, the Python application will fail to run.

    The parser will output a new CSV file called "TeachingRatings_Clean.csv" to the root directory, which will be
    read into memory in the plotting script.

    iPython Execution:
    This Python application is written as standard Python scripts, which can be executed from an iPython environment
    using the %run command.

2. [Explanation of Files]:
    Header.py:
        Class header for table look-ups. Essential for the functionality of task1_parser.py and task2_plotter.py
    task1_parser.py:
        Task 1 script which reads the TeachingRatings.csv file, sanitises the data and outputs to a new CSV
    task2_plotter.py:
        Task 2 script which reads the TeachingRatings_Clean.csv file and plots data as per specifications

3. [Running the scripts]:
    Both scripts are built to be run sequentially. You must run task1_parser.py BEFORE running task2_plotter.py,
    as the parser will output a new, cleaned CSV file for reference in the plotter script.

    * [Running task1_parser.py:
        This Python script will run when calling the following command from an iPython environment:
            %run task1_parser.py
    * [Running task2_plotter.py:
        This Python script will run when calling the following command from an iPython environment:
            %run task2_plotter.py

data-cleaning-and-summarising's People

Contributors

yendall avatar

Watchers

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