#NEWLINE# def xs( self , key , axis = 0 , copy = False ) : #NEWLINE# #INDENT# '\n        Returns a row (cross-section) from the SparseDataFrame as a Series\n        object.\n\n        Parameters\n        ----------\n        key : some index contained in the index\n\n        Returns\n        -------\n        xs : Series\n        ' #NEWLINE# if ( axis == 1 ) : #NEWLINE# #INDENT# data = self [ key ] #NEWLINE# return data #NEWLINE# #UNINDENT# i = self . index . get_loc ( key ) #NEWLINE# data = self . take ( [ i ] ) . get_values ( ) [ 0 ] #NEWLINE# return Series ( data , index = self . columns )