pandas.io.parsers.TextFileReader.read

pandas 3.1.1 · Input and output · method

Read the next requested number of rows from the TextFileReader into a DataFrame.

Call syntax

TextFileReader.read(nrows=None)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
nrows Optional
Positional or keyword
Default None
int

Limit the number of rows to read or display.

Returns

DataFrame