pandas to rgd