INNER CODE UNIT · Python

show_table

guma44/GEOparse · src/GEOparse/GEOTypes.py:306

    def show_table(self, number_of_lines=5):
        """Show few lines of the table the table as pandas.DataFrame.

        Args:
            number_of_lines (:obj:`int`): Number of lines to show. Defaults to 5.
        """
        print(self.table.head(number_of_lines))

    def _get_object_as_soft(self):
        """Get the object as SOFT formated string."""
        soft = [
            "^%s = %s" % (self.geotype, self.name),
            self._get_metadata_as_string(),
            self._get_columns_as_string(),
            self._get_table_as_string(),
        ]
        return "\n".join(soft)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…