'PySpark withcolumn not keeping new column

I am trying to save change a column from string to integer, I am getting a nonetype error as shown, I am not sure what is going wrong here.

enter image description here



Solution 1:[1]

In the cell #113, you ended with printSchema(), which has return type None. Remove that and your data_use will be a dataframe

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 pltc