def _load_table(self, metadata_path, data_path):
metadata_dir = os.path.dirname(os.path.expanduser(metadata_path))<EOL>data_path = os.path.normpath(os.path.join(metadata_dir, data_path))<EOL>extension = data_path.split('<STR_LIT:.>')[-<NUM_LIT:1>]<EOL>if extension == '<STR_LIT>':<EOL><INDENT>full_table = pd.read_csv(data_path, index_col=False)<EOL>table = _subset_table(full_table, self.subset)<EOL>self.meta, _ = _subset_meta(self.meta, self.subset)<EOL><DEDENT>elif extension in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>table = self._get_db_table(data_path, extension)<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>' % extension)<EOL><DEDENT>return table<EOL>
Load data table, taking subset if needed

Parameters
----------
metadata_path : str
    Path to metadata file
data_path : str
    Path to data file, absolute or relative to metadata file

Returns
-------
dataframe
    Table for analysis