'a new dataframe from joining two dataframes throw following error when any operations is performed 'NoneType' object has no attribute

If I run

spdf_SRCustomersWaddress = spdf_SRSalesCustomers.join(
  spdf_SRSalesAddress, 
  spdf_SRSalesCustomers.CustomerID == spdf_SRSalesAddress.CustomerID,
  "inner"
)

the resulting dataframe will not perform any operation such as show(), count(), printSchema(), etc.



Sources

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

Source: Stack Overflow

Solution Source