using pandas to generate plots