def _get_norms_of_rows(data_frame, method):
if method == '<STR_LIT>':<EOL><INDENT>norm_vector = np.linalg.norm(data_frame.values, axis=<NUM_LIT:1>)<EOL><DEDENT>elif method == '<STR_LIT>':<EOL><INDENT>norm_vector = data_frame.iloc[:, -<NUM_LIT:1>].values<EOL><DEDENT>elif method == '<STR_LIT>':<EOL><INDENT>norm_vector = np.mean(data_frame.values, axis=<NUM_LIT:1>)<EOL><DEDENT>elif method == '<STR_LIT>':<EOL><INDENT>norm_vector = data_frame.iloc[:, <NUM_LIT:0>].values<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(method))<EOL><DEDENT>return norm_vector<EOL>
return a column vector containing the norm of each row