#NEWLINE# def merge( self , * args , **kwargs ) : #NEWLINE# #INDENT# result = DataFrame . merge ( self , * args , ** kwargs ) #NEWLINE# geo_col = self . _geometry_column_name #NEWLINE# if ( isinstance ( result , DataFrame ) and ( geo_col in result ) ) : #NEWLINE# #INDENT# result . __class__ = GeoDataFrame #NEWLINE# result . crs = self . crs #NEWLINE# result . _geometry_column_name = geo_col #NEWLINE# result . _invalidate_sindex ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( result , DataFrame ) and ( geo_col not in result ) ) : #NEWLINE# #INDENT# result . __class__ = DataFrame #NEWLINE# #UNINDENT# #UNINDENT# return result