Skip to content

Commit 55462d1

Browse files
committed
Replacing append with concat (#66)
1 parent aab2b7d commit 55462d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

forestplot/dataframe_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def reverse_dataframe(dataframe: pd.core.frame.DataFrame) -> pd.core.frame.DataF
116116
def insert_empty_row(dataframe: pd.core.frame.DataFrame) -> pd.core.frame.DataFrame:
117117
"""Add an empty row to the top of the dataframe."""
118118
_df = pd.DataFrame([[np.nan] * len(dataframe.columns)], columns=dataframe.columns)
119-
dataframe = _df.append(dataframe, ignore_index=True)
119+
dataframe = pd.concat([_df, dataframe], axis=0, ignore_index=True)
120120
return dataframe
121121

122122

0 commit comments

Comments
 (0)