Skip to content

Commit ce84039

Browse files
authored
update pandas append to pandas concat
update pandas append to pandas concat
1 parent 178792c commit ce84039

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pluto/pluto_chapter_2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ def build_shoe_fname(self, start_path):
196196
f = os.path.join(root, name)
197197
p = pathlib.Path(f).parent.name
198198
d = pandas.DataFrame({'fname': [f], 'label': [p]})
199-
df = df.append(d, ignore_index=True)
199+
#df = df.append(d, ignore_index=True)
200+
df = pandas.concat([df, d], ignore_index=True)
200201
#
201202
# clean it up
202203
df = df.reset_index(drop=True)

0 commit comments

Comments
 (0)