I have dict like below. i want to print the below data as a table in command line
Input:
{
'PERFORMANCE_SCHEMA_DIGESTS_SIZE': {'To': '-1', 'From': '10000'},
'PERFORMANCE_SCHEMA_SESSION_CONNECT_ATTRS_SIZE': {'To': '-1', 'From': '512'},
'ENCRYPT_TMP_DISK_TABLES': {'To': 'OFF', 'From': 'ON'},
'INNODB_READ_IO_THREADS': {'To': '4', 'From': '10'}
}
Output:
-------------------------------------------------------------------------------
| Perameter | Previous Value(From) | currunt value(To) |
-------------------------------------------------------------------------------
| PERFORMANCE_SCHEMA_DIGESTS_SIZE | 10000 | -1 |
-------------------------------------------------------------------------------
Can someone help me with this? I have tried with pandas but my dict format not supporting
Thanks in advance.