Skip to main content
Ctrl+K
Logo image

Site Navigation

  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn
  • NEPs

Site Navigation

  • User Guide
  • API reference
  • Development
  • Release notes
  • Learn
  • NEPs

Section Navigation

Getting started

  • What is NumPy?
  • Installation
  • NumPy quickstart
  • NumPy: the absolute basics for beginners

Fundamentals and usage

  • NumPy fundamentals
    • Array creation
    • Indexing on ndarrays
    • I/O with NumPy
      • Importing data with genfromtxt
    • Data types
    • Broadcasting
    • Copies and views
    • Structured arrays
    • Universal functions (ufunc) basics
  • NumPy for MATLAB users
  • NumPy tutorials
  • NumPy how-tos

Advanced usage and interoperability

  • Building from source
  • Using NumPy C-API
  • F2PY user guide and reference manual
  • Under-the-hood documentation for developers
  • Interoperability with NumPy

Extras

  • Glossary
  • Release notes
  • NumPy 2.0 Migration Guide
  • NumPy license
  • NumPy user guide
  • NumPy fundamentals
  • I/O with NumPy

I/O with NumPy#

  • Importing data with genfromtxt
    • Defining the input
    • Splitting the lines into columns
    • Skipping lines and choosing columns
    • Choosing the data type
    • Setting the names
    • Tweaking the conversion

previous

Indexing on ndarrays

next

Importing data with genfromtxt

© Copyright 2008-2023, NumPy Developers.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.13.3.