def from_filename(filename, table_name=None, table_index=None):
        """Wrapper around from_file_object to handle extension extraction"""
        # NOTE: this is a messytables table name
        extension = os.path.splitext(filename)[1].strip('.')
        with open(filename, 'rb') as f:
            return Table.from_file_object(f, extension,
                                          table_name=table_name,
                                          table_index=table_index)