show columns pandas code example
Example 1: python show all columns
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
Example 2: pd show all columns
pd.set_option('display.max_columns', None)
movies.head()
Example 3: show columns
Copied mysql> SHOW COLUMNS FROM City;
+------------+----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------+------+-----+---------+----------------+
| Id | int(11) | NO | PRI | NULL | auto_increment |
| Name | char(35) | NO | | | |
| Country | char(3) | NO | UNI | | |
| District | char(20) | YES | MUL | | |
| Population | int(11) | NO | | 0 | |
+------------+----------+------+-----+---------+----------------+
5 rows in set (0.00 sec)