mljar / piece-of-code

🍰 Coding is piece of cake
https://mljar.com
Other
2 stars 0 forks source link

Reading data from CSV fails #28

Closed a-szulc closed 4 months ago

a-szulc commented 4 months ago

When reading data from CSV file it fails because of df.shape()

error:

There was an error during code execution:
TypeError 
'tuple' object is not callable

traceback:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[2], line 4
      2 df = pd.read_csv(r"/home/adas/mljar/studio/test_with_Survived.csv")
      3 # display data shape
----> 4 print(df.shape())
      5 # display first rows
      6 df.head()

TypeError: 'tuple' object is not 

change df.shape() to df.shape, and it is fixed