文章目录
数据清洗可视化特征工程,类编写
代码语言:javascript
复制# -*- coding:utf-8 -*-
# /usr/bin/python
'''
@Author : Yan Errol
@Describe: data:data_info(显示数据缺失样本总数情况)-缺失值处理(去除或补均值)-数值化(非数字数值化)- 数据可视化 -
@Evn : pandas numpy plotly pyecharts==0.5.11 bokeh
@Date : 2019-06-28 15:26
'''
import os
import math
import plotly
from PIL import Image
from io import StringIO
import seaborn as sns
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
import plotly.graph_objs as go
import matplotlib.pyplot as plt
from pyecharts import Bar,Pie,WordCloud,Surface3D,ThemeRiver
from sklearn import preprocessing
from sklearn.preprocessing import OneHotEncoder
from sklearn.preprocessing import LabelEncoder
from sklea