import pandas as pd
import numpy as np
import matplotlib.pyplot as plt


s = pd.Series([1,3,5,np.nan,6,8])
print s

dates = pd.date_range('20130101',periods=6)
print dates

df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD'))
print df

df2 = pd.DataFrame({ 'A' : 1.,
	'B' : pd.Timestamp('20130102'),
	'C' : pd.Series(1,index=list(range(4)),dtype='float32'),
	'D' : np.array([3] * 4,dtype='int32'),
	'E' : pd.Categorical(["test","train","test","train"]),
	'F' : 'foo' }) 
print df2
print df2.dtypes

print df.head()

print df.tail(3)

print df.index

print 'df.columns:\t'
print df.columns,'\n'

print 'df.values:\n',df.values,'\n'	

print 'df.describe:\n',df.describe(),'\n'

print 'df.T:\n',df.T,'\n'

print 'df:\n',df,'\n'
print df.sort_index(axis=1,ascending=False)
print df.sort_index(axis=0,ascending=False)