def _process_quantiles(x, dim):
x = np.asarray(x, dtype=float)<EOL>if x.ndim == <NUM_LIT:0>:<EOL><INDENT>x = x[np.newaxis]<EOL><DEDENT>elif x.ndim == <NUM_LIT:1>:<EOL><INDENT>if dim == <NUM_LIT:1>:<EOL><INDENT>x = x[:, np.newaxis]<EOL><DEDENT>else:<EOL><INDENT>x = x[np.newaxis, :]<EOL><DEDENT><DEDENT>return x<EOL>
Adjust quantiles array so that last axis labels the components of
each data point.