• kaggle 中使用ipython


    # 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

  • 相关阅读:
    php基础
    MYSQL 常用函数
    MYSQL 练习题
    MYSQL 查询
    MYSQL:增删改
    隐藏导航
    分层导航
    图片轮播!
    你帅不帅?
    PHP 流程
  • 原文地址:https://www.cnblogs.com/bonelee/p/7197053.html
Copyright © 2020-2023  润新知