<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_TS_index(self, data):
 """ Convert index to datetime and all other columns to numeric Parameters data : pd.DataFrame() Input dataframe. Returns ------- pd.DataFrame() Modified dataframe. """

        
        # Set index
        data.index = pd.to_datetime(data.index, error= "ignore")

        # Format types to numeric
        for col in data.columns:
            data[col] = pd.to_numeric(data[col], errors="coerce")

        return data