Data-Cleaning-Practical-Examples icon indicating copy to clipboard operation
Data-Cleaning-Practical-Examples copied to clipboard

Code Error detected

Open tolani007 opened this issue 1 year ago • 0 comments

Highlighting Code for needed tweak

Hi Jcharis,

I noticed that in [Data Cleaning -Working with Column Names]

 The code below does not work:
### To View a Summary of the Column Names
df.columns.summary()

#### It gives the output below:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-8-d9b9f7060be7>](https://localhost:8080/#) in <cell line: 0>()
      1 ### To View a Summary of the Column Names
----> 2 df.columns.summary()

AttributeError: 'Index' object has no attribute 'summary'

Also i love these cleaning exercises thank you .

tolani007 avatar Mar 06 '25 03:03 tolani007