E-book details

NumPy Cookbook. If you’re a Python developer with basic NumPy skills, the 70+ recipes in this brilliant cookbook will boost your skills in no time. Learn to raise productivity levels and code faster and cleaner with the open source mathematical library

NumPy Cookbook. If you’re a Python developer with basic NumPy skills, the 70+ recipes in this brilliant cookbook will boost your skills in no time. Learn to raise productivity levels and code faster and cleaner with the open source mathematical library

Ivan Idris, NumPy

Ebook
Today's world of science and technology is all about speed and flexibility. When it comes to scientific computing, NumPy is on the top of the list. NumPy will give you both speed and high productivity.
NumPy Cookbook will teach you all about NumPy, a leading scientific computing library. NumPy replaces a lot of the functionality of Matlab and Mathematica, but in contrast to those products, it is free and open source.
Numpy Cookbook will teach you to write readable, efficient, and fast code that is as close to the language of Mathematics as much as possible with the cutting edge open source NumPy software library.
You will learn about installing and using NumPy and related concepts. At the end of the book, we will explore related scientific computing projects.
This book will give you a solid foundation in NumPy arrays and universal functions. You will also learn about plotting with Matplotlib and the related SciPy project through examples.
NumPy Cookbook will help you to be productive with NumPy and write clean and fast code.
  • NumPy Cookbook
    • Table of Contents
    • NumPy Cookbook
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Winding Along with IPython
      • Introduction
      • Installing IPython
        • How to do it...
        • How it works...
      • Using IPython as a shell
        • How to do it...
        • How it works...
      • Reading manual pages
        • How to do it...
        • How it works...
      • Installing Matplotlib
        • How to do it...
      • Running a web notebook
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Exporting a web notebook
        • How to do it...
      • Importing a web notebook
        • How to do it...
      • Configuring a notebook server
        • How to do it...
        • How it works...
      • Exploring the SymPy profile
        • Getting ready
        • How to do it...
    • 2. Advanced Indexing and Array Concepts
      • Introduction
      • Installing SciPy
        • Getting ready
        • How to do it...
        • How it works...
      • Installing PIL
        • How to do it...
      • Resizing images
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Creating views and copies
        • Getting ready
        • How to do it...
        • How it works...
      • Flipping Lena
        • How to do it...
        • See also
      • Fancy indexing
        • How to do it...
        • How it works...
      • Indexing with a list of locations
        • How to do it...
      • Indexing with booleans
        • How to do it...
        • How it works...
        • See also
      • Stride tricks for Sudoku
        • How to do it...
        • How it works...
      • Broadcasting arrays
        • How to do it...
    • 3. Get to Grips with Commonly Used Functions
      • Introduction
      • Summing Fibonacci numbers
        • How to do it...
        • How it works...
        • See also
      • Finding prime factors
        • How to do it...
        • How it works...
      • Finding palindromic numbers
        • How to do it...
        • How it works...
        • Theres more...
      • The steady state vector determination
        • How to do it...
        • How it works...
        • See also
      • Discovering a power law
        • How to do it...
        • How it works...
        • See also
      • Trading periodically on dips
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Simulating trading at random
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Sieving integers with the Sieve of Erasthothenes
        • How to do it...
    • 4. Connecting NumPy with the Rest of the World
      • Introduction
      • Using the buffer protocol
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Using the array interface
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Exchanging data with MATLAB and Octave
        • Getting ready
        • How to do it...
        • See also
      • Installing RPy2
        • How to do it...
      • Interfacing with R
        • Getting ready
        • How to do it...
        • See also
      • Installing JPype
        • How to do it...
      • Sending a NumPy array to JPype
        • How to do it...
        • How it works...
        • See also
      • Installing Google App Engine
        • How to do it...
      • Deploying NumPy code in the Google cloud
        • How to do it...
        • How it works...
      • Running NumPy code in a Python Anywhere web console
        • How to do it...
        • How it works...
      • Setting up PiCloud
        • How to do it...
        • How it works...
    • 5. Audio and Image Processing
      • Introduction
      • Loading images into memory map
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Combining images
        • Getting ready
        • How to do it...
        • How it works...
        • See also
      • Blurring images
        • How to do it...
        • How it works...
      • Repeating audio fragments
        • How to do it...
        • How it works...
      • Generating sounds
        • How to do it...
        • How it works...
      • Designing an audio filter
        • How to do it...
        • How it works...
      • Edge detection with the Sobel filter
        • How to do it...
        • How it works...
    • 6. Special Arrays and Universal Functions
      • Introduction
      • Creating a universal function
        • How to do it...
        • How it works...
      • Finding Pythagorean triples
        • How to do it...
        • How it works...
      • Performing string operations with chararray
        • How to do it...
        • How it works...
      • Creating a masked array
        • How to do it...
        • How it works...
      • Ignoring negative and extreme values
        • How to do it...
        • How it works...
      • Creating a scores table with recarray
        • How to do it...
        • How it works...
    • 7. Profiling and Debugging
      • Introduction
      • Profiling with timeit
        • How to do it...
        • How it works...
      • Profiling with IPython
        • How to do it...
        • How it works...
      • Installing line_profiler
        • Getting ready
        • How to do it...
        • See also
      • Profiling code with line_profiler
        • How to do it...
        • How it works...
      • Profiling code with the cProfile extension
        • How to do it...
      • Debugging with IPython
        • How to do it...
        • How to do it...
      • Debugging with pudb
        • How to do it...
    • 8. Quality Assurance
      • Introduction
      • Installing Pyflakes
        • Getting ready
        • How to do it...
      • Performing static analysis with Pyflakes
        • How to do it...
        • How it works...
      • Analyzing code with Pylint
        • Getting ready
        • How to do it...
          • How it works...
          • See also
        • Performing static analysis with Pychecker
          • How to do it...
        • Testing code with docstrings
          • How to do it...
          • How it works...
        • Writing unit tests
          • How to do it...
          • How it works...
        • Testing code with mocks
          • How to do it...
          • How it works...
        • Testing the BDD way
          • How to do it
          • How it works...
    • 9. Speed Up Code with Cython
      • Introduction
      • Installing Cython
        • How to do it...
      • Building a Hello World program
        • How to do it...
        • How it works...
      • Using Cython with NumPy
        • How to do it...
        • How it works...
      • Calling C functions
        • How to do it...
        • How it works...
      • Profiling Cython code
        • How to do it...
        • How it works...
      • Approximating factorials with Cython
        • How to do it...
        • How it works...
    • 10. Fun with Scikits
      • Introduction
      • Installing scikits-learn
        • Getting ready
        • How to do it...
      • Loading an example dataset
        • How to do it...
      • Clustering Dow Jones stocks with scikits-learn
        • How to do it...
        • How it works...
      • Installing scikits-statsmodels
        • How to do it...
      • Performing a normality test with scikits-statsmodels
        • How to do it...
        • How it works...
      • Installing scikits-image
        • How to do it...
      • Detecting corners
        • Getting ready
        • How to do it...
        • How it works...
      • Detecting edges
        • How to do it...
      • Installing Pandas
        • How to do it...
      • Estimating stock returns correlation with Pandas
        • How to do it...
        • How it works...
      • Loading data as pandas objects from statsmodels
        • Getting ready
        • How to do it...
        • How it works...
      • Resampling time series data
        • How to do it...
        • How it works...
    • Index
  • Title: NumPy Cookbook. If you’re a Python developer with basic NumPy skills, the 70+ recipes in this brilliant cookbook will boost your skills in no time. Learn to raise productivity levels and code faster and cleaner with the open source mathematical library
  • Author: Ivan Idris, NumPy
  • Original title: NumPy Cookbook. If you’re a Python developer with basic NumPy skills, the 70+ recipes in this brilliant cookbook will boost your skills in no time. Learn to raise productivity levels and code faster and cleaner with the open source mathematical library.
  • ISBN: 9781849518932, 9781849518932
  • Date of issue: 2012-10-25
  • Format: Ebook
  • Item ID: e_3cbq
  • Publisher: Packt Publishing