annafina
New Contributor II

checkpoint() returns a checkpointed DataFrame, so you need to assign it to a new variable:

checkpointedDF = df.checkpoint()