I found an issue in my script where I was setting df to itself but also had the inplace flag set to true. This resulted in df becoming a \'NoneType\'. I can int
\'NoneType\'