In [1]:
%load_ext sql
In [2]:
%%sql
impala://impalasrv-test:21050/test2
Out[2]:
In [3]:
%%sql
select * from emp
Out[3]:
In [4]:
Employee_name="SCOTT"
%sql select * from emp where ename=:Employee_name
Out[4]:
In [5]:
myResultSet=%sql select ename "Employee Name", sal "Salary" from emp
%matplotlib inline
import matplotlib
matplotlib.style.use('ggplot')
myResultSet.bar()
Out[5]:
In [6]:
my_DataFrame=myResultSet.DataFrame()
In [7]:
my_DataFrame.head()
Out[7]:
In [ ]: