Trying to make a column named loan\_status\_is\_great on my pandas dataframe. It should contain the integer 1 if loan\_status is "Current" or "Fully Paid." Else it should contain the integer 0.

I'm using <https://resources.lendingclub.com/LoanStats_2018Q4.csv.zip> as my dataset.

My problem code is:

```
def loan_great():
   if (df['loan_status']).any == 'Current' or (df['loan_status']).any == 'Fully Paid':
     return 1
   else:
     return 0

df['loan_status_is_great']=df['loan_status'].apply(loan_great())

```

TypeError Traceback (most recent call last)
 in ()
----> 1 df['loan\_status\_is\_great']=df['loan\_status'].apply(loan\_great())

/usr/local/lib/python3.6/dist-packages/pandas/core/series.py in apply(self, func, convert\_dtype, args, \*\*kwds)
 4043 else:
 4044 values = self.astype(object).values
-> 4045 mapped = lib.map\_infer(values, f, convert=convert\_dtype)
 4046 
 4047 if len(mapped) and isinstance(mapped[0], Series):

pandas/\_libs/lib.pyx in pandas.\_libs.lib.map\_infer()

TypeError: 'int' object is not callable