title: From pdDataFrame "can not assign to function call" error
body: <pre><code>import requests
  import json
  import codecs
  import pandas as pd
  
  baseurl = &quot;https://www.nseindia.com/&quot;
  url = f'https://www.nseindia.com/api/live-analysis-oi-spurts-underlyings'
  headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, ''like Gecko) ''Chrome/80.0.3987.149 Safari/537.36','accept-language': 'en,gu;q=0.9,hi;q=0.8', 'accept-encoding': 'gzip, deflate, br'}
  session = requests.Session()
  request = session.get(baseurl, headers=headers, timeout=30)
  cookies = dict(request.cookies)
  res = session.get(url, headers=headers, timeout=30, cookies=cookies)
  df = pd.DataFrame(json.loads(codecs.decode(bytes(res.text, 'utf-8'), 'utf-8-sig'))['data'])
  #print(df)
  mini_df = df[['symbol', 'latestOI', 'prevOI', 'changeInOI','volume','underlyingValue']]
  #print(df.columns.tolist())
  #print(df['symbol'])
  new_df=mini_df.drop(['FINNIFTY','NIFTY']), axis=0, inplace=True)
  pd.set_option('display.max_columns', None)
  pd.set_option('display.max_rows', None)
  #print(mini_df.to_string(index=False))
  print(new_df.to_string(index=False))
  #print(new_df)
  </code></pre>
  <p>I tried above script to drop some rows from DataFrame but getting &quot;can not assign to function call&quot; as error. How to resolve it Plz ??</p>