首页 > 编程语言 > 详细

kaggle 中使用ipython

时间:2017-07-17 19:38:50      阅读:307      评论:0      收藏:0      [点我收藏+]
# pandas
import pandas as pd
from pandas import Series,DataFrame

# numpy, matplotlib, seaborn
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style(whitegrid)
%matplotlib inline

# machine learning
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC, LinearSVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.neighbors import KNeighborsClassifier
from sklearn.naive_bayes import GaussianNB

s = Series(np.random.randn(10).cumsum(), index=np.arange(0, 100, 10))
s.plot()

a=[1,2,3,4,5]
a

可以直接绘图:

技术分享

https://www.kaggle.com/bonelee/a-journey-through-titanic/editnb

kaggle 中使用ipython

原文:http://www.cnblogs.com/bonelee/p/7197053.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!