From 99c82ae03e069cb8462f76b76475e021c511b29d Mon Sep 17 00:00:00 2001 From: Terji Petersen Date: Wed, 16 Nov 2022 19:15:12 +0000 Subject: [PATCH] stata range index --- pandas/io/stata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 5860aa4ae7c3e2..269dd169cdeaac 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1725,7 +1725,7 @@ def read( # If index is not specified, use actual row number rather than # restarting at 0 for each chunk. if index_col is None: - rng = np.arange(self._lines_read - read_lines, self._lines_read) + rng = range(self._lines_read - read_lines, self._lines_read) data.index = Index(rng) # set attr instead of set_index to avoid copy if columns is not None: