社交网络图
nx.circular_layout()指定网络图节点的布局方式
nx.draw_networkx_nodes()绘制网络图的节点
nx.draw_networkx_edges()绘制网络的边
nx.draw_networkx_labels()为节点添加标签
import networkx as nx
import pandas as pd
import matplotlib.pyplot as plt
import os
plt.rcParams['font.sans-serif'
泰坦尼克号船员获救预测
第一步导入各种包
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签
import seaborn as sns
from sklearn import datasets
from sklearn import impute
from sklearn.preprocessin