title: How to use technical indicators of TA-Lib with pandas in python
body: <p>I am new to python and pandas and mainly learning it to diversify my programming skills as well as of the advantage of python as a general programme language. In this programme I am using it to fetch historical data's from yahoo and do some technical analysis  using functions in talib</p>
  
  <pre><code>import pandas_datareader.data as web
  import datetime
  import talib as ta
  
  start = datetime.datetime.strptime('12/1/2015', '%m/%d/%Y')
  end = datetime.datetime.strptime('2/20/2016', '%m/%d/%Y')
  f = web.DataReader('GOOG', 'yahoo', start, end)
  print 'Closing Prices'
  print f['Close'].describe()
  print f.Close
  print ta.RSI(f.Close,2)
  print ta.SMA(f.Close,2)
  print ta.SMA(f.Volume,4)
  print ta.ATR
  print ta.ATR(f.High,f.Low,f.Close,3)
  </code></pre>
  
  <p>the above code works till <code>print f.Close</code> but then it shows this error</p>
  
  <pre><code> print ta.RSI(f.Close,2)
  TypeError: Argument 'real' has incorrect type (expected numpy.ndarray, got Series)
  </code></pre>
  
  <p>I have used R and its libraries for technical analysis of stocks and It have an inbuilt library called <code>Quantmod</code> which makes technical analysis easier and with fewer codes.</p>
  
  <pre><code>library(quantmod)
  symbol=getSymbols(AAPL)
  SMA=SMA(Cl(Symbol),2)
  </code></pre>
  
  <p>is there any similar libraries available for Python?.</p>