import numpy as np import pandas as pd import matplotlib.pyplot as plt df1 = pd.DataFrame(np.arange(1000, 1100, 4).reshape(5,5), index=['a'+str(i) for i in range(5)], columns=['b'+str(j) for j in range(5)]) df1 .dataframe tbody tr th:only-of-type { v