def inplace_column_scale(X, scale):
 if isinstance(X, sp.csc_matrix):
  inplace_csr_row_scale(X.T, scale)
 elif isinstance(X, sp.csr_matrix):
  inplace_csr_column_scale(X, scale)
 else:
  _raise_typeerror(X)

def inplace_column_scale ( X , scale ) : if isinstance ( X , sp . csc_matrix ) : inplace_csr_row_scale ( X . T , scale ) elif isinstance ( X , sp . csr_matrix ) : inplace_csr_column_scale ( X , scale ) else : _raise_typeerror ( X )
inplace column scaling of a csc/csr matrix .