PostgresOSM.get_column_info¶
-
PostgresOSM.
get_column_info
(table_name, schema_name='public', as_dict=True)¶ Get information about columns of a table.
- Parameters
table_name (str) – name of a table
schema_name (str) – name of a schema, defaults to
'public'
as_dict (bool) – whether to return the column information as a dictionary, defaults to
True
- Returns
information about each column of the given table
- Return type
pandas.DataFrame or dict
See the example for the method
.create_table()
.