<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _split_num_cat(X, categorical):
 """Extract numerical and categorical columns. Convert to numpy arrays, if needed. :param X: Feature matrix :param categorical: Indices of categorical columns """

    Xnum = np.asanyarray(X[:, [ii for ii in range(X.shape[1])
                               if ii not in categorical]]).astype(np.float64)
    Xcat = np.asanyarray(X[:, categorical])
    return Xnum, Xcat