You need an ```else``` here to catch any unhandled pandas types rather than potentially failing silently.