pandas.io.parsers.TextFileReader.close#
- TextFileReader.close()[source]#
Close the underlying file handle and parser engine.
Called automatically when the
TextFileReaderis used as a context manager.See also
TextFileReader.readRead rows from the file into a DataFrame.
TextFileReader.get_chunkRead the next chunk of rows.
Examples
>>> reader = pd.read_csv("data.csv", chunksize=5) >>> reader.close()