Coder Social home page Coder Social logo

pankajomkar / python_for_data_science Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gumption/python_for_data_science

0.0 1.0 0.0 421 KB

A rapid on-ramp primer for programmers who want to learn Python for doing data science research and development.

Python 2.00% HTML 48.03% Jupyter Notebook 49.97%

python_for_data_science's Introduction

Python for Data Science

This short primer on Python is designed to provide a rapid "on-ramp" for computer programmers who are already familiar with basic concepts and constructs in other programming languages to learn enough about Python to effectively use open-source and proprietary Python-based machine learning and data science tools.

The primer is spread across a collection of IPython Notebooks, and the easiest way to use the primer is to install IPython Notebook on your computer. You can also install Python, and manually copy and paste the pieces of sample code into the Python interpreter, as the primer only makes use of the Python standard libraries.

There are four versions of the primer. Three versions contain the entire primer in a single notebook:

The other version divides the primer into 5 separate notebooks:

There are several exercises included in the notebooks. Sample solutions to those exercises can be found in two Python source files:

  • simple_ml.py: a collection of simple machine learning utility functions
  • simple_decision_tree.py: a Python class to encapsulate a simplified version of a popular machine learning model

There are also 2 data files, based on the mushroom dataset in the UCI Machine Learning Repository, used for coding examples, exploratory data analysis and building and evaluating decision trees in Python:

  • agaricus-lepiota.data: a machine-readable list of examples or instances of mushrooms, represented by a comma-separated list of attribute values
  • agaricus-lepiota.attributes: a machine-readable list of attribute names and possible attribute values and their abbreviations

Change Log

2015-07-26

  • Updated all and clean notebooks with additional cells base on PyData Seattle 2015 tutorial Q&A

2015-07-21

  • Updated 5 subnotebooks for Python 3 compatibility
  • Changed file name of SimpleDecisionTree.py to simple_decision_tree.py (class name is unchanged)
  • Reordered introduction of defaultdict and Counter containers
  • Reordered the values returned by classification_accuracy()
  • Added more examples of formatted printing via str.format()
  • Various and sundry other minor changes to prepare for tutorial at PyData Seattle 2015

2015-02-23

  • Added attribution for suggested changes to accommodate Python 3 to Nick Coghlan

2015-02-22

  • Added from __future__ import print_function, division for Python 3 compatibility
  • Updated simple_ml.py and SimpleDecisionTree.py to also use Python 3 print_function and division
  • Replaced xrange() (Python 2 only) with range() (Python 2 or 3)
  • Replaced dict.iteritems() (Python 2 only) with dict.items() (Python 2 or 3)
  • Changed "call by reference" to "call by sharing"
  • Added isinstance() (and reference to duck typing) to section on type()
  • Added variable for delimiter rather than hard-coding '|' character
  • Cleaned up various cells

python_for_data_science's People

Contributors

gumption avatar ogaday avatar

Watchers

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