From a27e9b022e988cc634b688a657649b67d1a32a7a Mon Sep 17 00:00:00 2001 From: AlexanderJuestel Date: Mon, 27 Nov 2023 20:01:41 +0100 Subject: [PATCH] EditTests --- gemgis/visualization.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gemgis/visualization.py b/gemgis/visualization.py index b2e34898..7634903b 100644 --- a/gemgis/visualization.py +++ b/gemgis/visualization.py @@ -2607,6 +2607,9 @@ def create_deviated_borehole_df(df_survey: pd.DataFrame, .. versionadded:: 1.0.x + .. versionchanged:: 1.1.7 + Replace pandas append with concat. + Example _______ @@ -2654,9 +2657,7 @@ def create_deviated_borehole_df(df_survey: pd.DataFrame, position = np.array(position.coords) # Calculating the bottom depth of each borehole segment - df_survey['depth_bottom'] = df_survey[depth].append(pd.Series(np.nan, - index=[len(df_survey[depth])]))[ - 1:].reset_index(drop=True) + df_survey['depth_bottom'] = pd.concat([df_survey[depth], pd.Series(np.nan,index=[len(df_survey[depth])])]) # Calculating the plunging vector for each borehole segment df_survey['vector'] = df_survey.apply(lambda row: calculate_vector(row[dip],