14.8 Are all tortoiseshell cats female?
Our DataFrame contains cats of many colours. Here’s some Python to print the colour codes in eight neat columns:
colours = sorted(df["Colour"].unique())
for count, colour in enumerate(colours, start=1):
print(f"{colour:<9}", end=("\n" if count % 8 == 0 else ""))
AGOUTI AMB APR APRWHI BEIBLA BEIGE BEIWHI BLAAPR
BLABRI BLABRO BLACK BLACRE BLAGIN BLAGRE BLAORA BLATAN
BLATOR BLAWHI BLONDE BLUBI BLUCRE BLUE BLUEP BLUGRE
BLUMIT BLUSPO BLUTAB BLUTOR BLUWHI BONE BRIBRO BRIGRE
BRIND BROBEI BROBLA BROCRE BROGRE BROMER BROSPOT BROTAB
BROWHI BROWN BRSPTAB CALI CHAMP CHAR CHARTAB CHAWHI
CHMWHI CHOC CHOCP CHOCRE CHOWHI CINN CREAM CREAPOI
CREBEI CREBRO CREGIN CREGRE CREWHI DKGREY DTORT FAWN
GINBLA GINBRO GINGER GINTAB GINWHI GOLD GREBLA...