import matplotlib as mpl
font_paths = mpl.font_manager.findSystemFonts()
font_objects = mpl.font_manager.createFontList(font_paths)
font_names = [f.name for f in font_objects]
print (font_names)
Python/Pandas Some TricksFind empty index of a Series of listdf[df.str.len()==0].indexReturn the longest string of each elementdf.apply(lambda x:max(x, key=len))