TypeError: an integer is required (got type NoneType) With tabular data

Based on this conversation, it must be the correct way to deal with Regression