{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This function aims to be a fast reader for simply formatted files.  The "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "genfromtxt",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " function provides more sophisticated handling of, e.g., lines with missing values."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Each row in the input text file must have the same number of values to be able to read all values. If all rows do not have same number of values, a subset of up to n columns (where n is the least number of values present in all rows) can be read by specifying the columns via "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "usecols"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The strings produced by the Python float.hex method can be used as input for floats."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "out",
              "annotation": "ndarray",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Data read from the text file."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Load data from a text file."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "fname",
              "annotation": "file, str, pathlib.Path, list of str, generator",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "File, filename, list, or generator to read.  If the filename extension is "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": ".gz"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " or "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": ".bz2"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", the file is first decompressed. Note that generators must return bytes or strings. The strings in a list or produced by a generator are treated as lines."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "dtype",
              "annotation": "data-type, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Data-type of the resulting array; default: float.  If this is a structured data-type, the resulting array will be 1-dimensional, and each row will be interpreted as an element of the array.  In this case, the number of columns used must match the number of fields in the data-type."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "comments",
              "annotation": "str or sequence of str or None, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The characters or list of characters used to indicate the start of a comment. None implies no comments. For backwards compatibility, byte strings will be decoded as 'latin1'. The default is '#'."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "delimiter",
              "annotation": "str, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The character used to separate the values. For backwards compatibility, byte strings will be decoded as 'latin1'. The default is whitespace."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionchanged",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionchanged 1.23.0"
                        }
                      ]
                    },
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Only single character delimiters are supported. Newline characters cannot be used as the delimiter."
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "converters",
              "annotation": "dict or callable, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Converter functions to customize value parsing. If "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "converters"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is callable, the function is applied to all columns, else it must be a dict that maps column number to a parser function. See examples for further details. Default: None."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionchanged",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionchanged 1.23.0"
                        }
                      ]
                    },
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "The ability to pass a single callable to be applied to all columns was added."
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "skiprows",
              "annotation": "int, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Skip the first "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "skiprows"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " lines, including comments; default: 0."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "usecols",
              "annotation": "int or sequence, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Which columns to read, with 0 being the first. For example, "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "usecols = (1,4,5)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " will extract the 2nd, 5th and 6th columns. The default, None, results in all columns being read."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "unpack",
              "annotation": "bool, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "If True, the returned array is transposed, so that arguments may be unpacked using "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "x, y, z = loadtxt(...)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ".  When used with a structured data-type, arrays are returned for each field. Default is False."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "ndmin",
              "annotation": "int, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The returned array will have at least "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "ndmin"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " dimensions. Otherwise mono-dimensional axes will be squeezed. Legal values: 0 (default), 1 or 2."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "encoding",
              "annotation": "str, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Encoding used to decode the inputfile. Does not apply to input streams. The special value 'bytes' enables backward compatibility workarounds that ensures you receive byte arrays as results if possible and passes 'latin1' encoded strings to converters. Override this value to receive unicode arrays and pass strings as input to converters.  If set to None the system default is used. The default value is None."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionchanged",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionchanged 2.0"
                        }
                      ]
                    },
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Before NumPy 2, the default was "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "'bytes'"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": " for Python 2 compatibility. The default is now "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "None"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "."
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "max_rows",
              "annotation": "int, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Read "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "max_rows"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " rows of content after "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "skiprows"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " lines. The default is to read all the rows. Note that empty rows containing no data such as empty lines and comment lines are not counted towards "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "max_rows"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", while such lines are counted in "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "skiprows"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionchanged",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionchanged 1.23.0"
                        }
                      ]
                    },
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Lines containing no data, including comment lines (e.g., lines starting with '#' or as specified via "
                        },
                        {
                          "__type": "ParamRef",
                          "__tag": 4071,
                          "name": "comments"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": ") are not counted towards "
                        },
                        {
                          "__type": "ParamRef",
                          "__tag": 4071,
                          "name": "max_rows"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "."
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "quotechar",
              "annotation": "unicode character or None, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The character used to denote the start and end of a quoted item. Occurrences of the delimiter or comment characters are ignored within a quoted item. The default value is "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "quotechar=None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", which means quoting support is disabled."
                    }
                  ]
                },
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "If two consecutive instances of "
                    },
                    {
                      "__type": "ParamRef",
                      "__tag": 4071,
                      "name": "quotechar"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " are found within a quoted field, the first is treated as an escape character. See examples."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionadded",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionadded 1.23.0"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "like",
              "annotation": "array_like, optional",
              "desc": [
                {
                  "__type": "Blockquote",
                  "__tag": 4059,
                  "children": [
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Reference object to allow the creation of arrays which are not     NumPy arrays. If an array-like passed in as "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "like"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": " supports     the "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "__array_function__"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": " protocol, the result will be defined     by it. In this case, it ensures the creation of an array object     compatible with that passed in via this argument."
                        }
                      ]
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "versionadded",
                  "base_type": "neutral",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "versionadded 1.20.0"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/numpy/lib/_npyio_impl.py",
  "item_line": 1118,
  "item_type": "_ArrayFunctionDispatcher",
  "aliases": [
    "numpy.loadtxt",
    "numpy.lib._npyio_impl._loadtxt_with_like"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "import numpy as np\nfrom io import StringIO   # StringIO behaves like a file object\nc = StringIO(\"0 1\\n2 3\")\nnp.loadtxt(c)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "d = StringIO(\"M 21 72\\nF 35 58\")\nnp.loadtxt(d, dtype={'names': ('gender', 'age', 'weight'),\n                     'formats': ('S1', 'i4', 'f4')})\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "c = StringIO(\"1,0,2\\n3,0,4\")\nx, y = np.loadtxt(c, delimiter=',', usecols=(0, 2), unpack=True)\nx\ny\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nThe `converters` argument is used to specify functions to preprocess the\ntext prior to parsing. `converters` can be a dictionary that maps\npreprocessing functions to each column:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO(\"1.618, 2.296\\n3.141, 4.669\\n\")\nconv = {\n    0: lambda x: np.floor(float(x)),  # conversion fn for column 0\n    1: lambda x: np.ceil(float(x)),  # conversion fn for column 1\n}\nnp.loadtxt(s, delimiter=\",\", converters=conv)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\n`converters` can be a callable instead of a dictionary, in which case it\nis applied to all columns:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO(\"0xDE 0xAD\\n0xC0 0xDE\")\nimport functools\nconv = functools.partial(int, base=16)\nnp.loadtxt(s, converters=conv)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nThis example shows how `converters` can be used to convert a field\nwith a trailing minus sign into a negative number.\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO(\"10.01 31.25-\\n19.22 64.31\\n17.57- 63.94\")\ndef conv(fld):\n    return -float(fld[:-1]) if fld.endswith(\"-\") else float(fld)\nnp.loadtxt(s, converters=conv)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nUsing a callable as the converter can be particularly useful for handling\nvalues with different formatting, e.g. floats with underscores:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO(\"1 2.7 100_000\")\n",
        "execution_status": "success"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "np.loadtxt(s, converters=float)\n",
        "execution_status": "failure"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nThis idea can be extended to automatically handle values specified in\nmany different formats, such as hex values:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "def conv(val):\n    try:\n        return float(val)\n    except ValueError:\n        return float.fromhex(val)\ns = StringIO(\"1, 2.5, 3_000, 0b4, 0x1.4000000000000p+2\")\nnp.loadtxt(s, delimiter=\",\", converters=conv)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nOr a format where the ``-`` sign comes after the number:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO(\"10.01 31.25-\\n19.22 64.31\\n17.57- 63.94\")\nconv = lambda x: -float(x[:-1]) if x.endswith(\"-\") else float(x)\nnp.loadtxt(s, converters=conv)\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nSupport for quoted fields is enabled with the `quotechar` parameter.\nComment and delimiter characters are ignored when they appear within a\nquoted item delineated by `quotechar`:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO('\"alpha, #42\", 10.0\\n\"beta, #64\", 2.0\\n')\ndtype = np.dtype([(\"label\", \"U12\"), (\"value\", float)])\n",
        "execution_status": "success"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "np.loadtxt(s, dtype=dtype, delimiter=\",\", quotechar='\"')\n",
        "execution_status": "failure"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nQuoted fields can be separated by multiple whitespace characters:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO('\"alpha, #42\"       10.0\\n\"beta, #64\" 2.0\\n')\ndtype = np.dtype([(\"label\", \"U12\"), (\"value\", float)])\n",
        "execution_status": "success"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "np.loadtxt(s, dtype=dtype, delimiter=None, quotechar='\"')\n",
        "execution_status": "failure"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nTwo consecutive quote characters within a quoted field are treated as a\nsingle escaped character:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "s = StringIO('\"Hello, my name is \"\"Monty\"\"!\"')\nnp.loadtxt(s, dtype=\"U\", delimiter=\",\", quotechar='\"')\n",
        "execution_status": "success"
      },
      {
        "__type": "Text",
        "__tag": 4046,
        "value": "\nRead subset of columns when all rows do not contain equal number of values:\n\n"
      },
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "d = StringIO(\"1 2\\n2 4\\n3 9 12\\n4 16 20\")\nnp.loadtxt(d, usecols=(0, 1))\n",
        "execution_status": "success"
      }
    ],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "fromregex",
        "reference": {
          "__type": "RefInfo",
          "__tag": 4000,
          "module": "current-module",
          "version": "current-version",
          "kind": "to-resolve",
          "path": "fromregex"
        },
        "kind": "module"
      },
      "descriptions": [],
      "type": null
    },
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "fromstring",
        "reference": {
          "__type": "RefInfo",
          "__tag": 4000,
          "module": "current-module",
          "version": "current-version",
          "kind": "to-resolve",
          "path": "fromstring"
        },
        "kind": "module"
      },
      "descriptions": [],
      "type": null
    },
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "genfromtxt",
        "reference": {
          "__type": "RefInfo",
          "__tag": 4000,
          "module": "current-module",
          "version": "current-version",
          "kind": "to-resolve",
          "path": "genfromtxt"
        },
        "kind": "module"
      },
      "descriptions": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Load data with missing values handled as specified."
            }
          ]
        }
      ],
      "type": null
    },
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "load",
        "reference": {
          "__type": "LocalRef",
          "__tag": 4022,
          "kind": "module",
          "path": "numpy:loadtxt"
        },
        "kind": "module"
      },
      "descriptions": [],
      "type": null
    },
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "scipy.io.loadmat",
        "reference": {
          "__type": "RefInfo",
          "__tag": 4000,
          "module": "current-module",
          "version": "current-version",
          "kind": "to-resolve",
          "path": "scipy.io.loadmat"
        },
        "kind": "module"
      },
      "descriptions": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "reads MATLAB data files"
            }
          ]
        }
      ],
      "type": null
    }
  ],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "fname",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "dtype",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "<class 'float'>"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "comments",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "#"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "delimiter",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "converters",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "skiprows",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "0"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "usecols",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "unpack",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "False"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "ndmin",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "0"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "encoding",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "max_rows",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "quotechar",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "KEYWORD_ONLY",
        "default": "None"
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "like",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "KEYWORD_ONLY",
        "default": "None"
      }
    ],
    "return_annotation": {
      "__type": "Empty",
      "__tag": 4031
    },
    "target_name": "loadtxt"
  },
  "references": null,
  "qa": "numpy:loadtxt",
  "arbitrary": [],
  "local_refs": [
    "comments",
    "converters",
    "delimiter",
    "dtype",
    "encoding",
    "fname",
    "like",
    "max_rows",
    "ndmin",
    "out",
    "quotechar",
    "skiprows",
    "unpack",
    "usecols"
  ]
}