8000 MAINT: Use pd.concat, DataFrame.append deprecated · has2k1/plotnine@e9cc70d · GitHub
[go: up one dir, main page]

Skip to content

Commit e9cc70d

Browse files
tabedzkihas2k1
authored andcommitted
MAINT: Use pd.concat, DataFrame.append deprecated
closes #571
1 parent 0d83ad8 commit e9cc70d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plotnine/facets/facet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def combine_vars(data, environment=None, vars=None, drop=True):
485485
].drop_duplicates()
486486
if not drop:
487487
new = unique_combs(new)
488-
base = base.append(cross_join(old, new), ignore_index=True)
488+
base = pd.concat(base, cross_join(old, new), ignore_index=True)
489489

490490
if len(base) == 0:
491491
raise PlotnineError(

plotnine/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def join_keys(x, y, by=None):
368368
if isinstance(by, tuple):
369369
by = list(by)
370370

371-
joint = x[by].append(y[by], ignore_index=True)
371+
joint = pd.concat([x[by], y[by]], ignore_index=True)
372372
keys = ninteraction(joint, drop=True)
373373
keys = np.asarray(keys)
374374
nx, ny = len(x), len(y)

0 commit comments

Comments
 (0)
0