I have a newly created Pandas dataframe, which for some reason I can't drop the columns from.
RangeIndex: 2617 entries, 0 to 2616 Columns: 111 entries, access to zoning dtypes: object(111) memory usage: 2.2+ MB None
print list(df)
['access', 'age', 'attic', 'basement_type', 'bathrooms', 'bedrooms_total', 'buyer', 'buyer_city', 'buyer_country', 'buyer_postal_code', 'colisting_agent_id', 'construction', 'csa_number', 'date_expired_hidden', 'date_listed', 'date_sold', 'date_unconditional', 'distance_to_schools', 'distance_to_transportation', 'district', 'ensuites', 'exterior_features', 'exterior_finish', 'fireplace_types', 'fireplaces', 'flooring', 'fuel', 'heating', 'id', 'interior_features', 'internet_remarks']
df = df.drop(['buyer', 'buyer_city', 'buyer_country', 'colisting_agent_id'], axis=1, inplace=True)
print list(df)```
TypeErrorTraceback (most recent call last)
<ipython-input-63-1db0e7488634> in <module>()
6
7
----> 8 print list(df)
TypeError: 'NoneType' object is not iterable