created pandas plot function