Skip to content

Commit b2ab07a

Browse files
committed
ENH: pandas read_* wildcard pandas-dev#15904
1 parent 645b86c commit b2ab07a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

doc/source/cookbook.rst

-2
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,6 @@ of the individual frames into a list, and then combine the frames in the list us
954954
data = pd.DataFrame(np.random.randn(10, 4))
955955
data.to_csv('file_{}.csv'.format(i))
956956
957-
frames = []
958957
files = ['file_0.csv', 'file_1.csv', 'file_2.csv']
959958
result = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
960959
@@ -963,7 +962,6 @@ You can use the same approach to read all files matching a pattern. Here is an
963962
.. ipython:: python
964963
965964
import glob
966-
frames = []
967965
files = glob.glob('file_*.csv')
968966
result = pd.concat([pd.read_csv(f) for f in files], ignore_index=True)
969967

0 commit comments

Comments
 (0)