DataFrame.duplicated(self, subset=None, keep='first') Return boolean Series denoting duplicate rows, optionally only considering certain columns. Para ...
分类:
其他好文 时间:
2019-11-23 00:00:36
阅读次数:
101
Series.duplicated(self, keep='first') Indicate duplicate Series values. Duplicated values are indicated as True values in the resulting Series. Either ...
分类:
其他好文 时间:
2019-11-22 23:42:46
阅读次数:
118
DataFrame.drop_duplicates(self, subset=None, keep='first', inplace=False) Return DataFrame with duplicate rows removed, optionally only considering ce ...
分类:
其他好文 时间:
2019-11-22 22:11:05
阅读次数:
83
In [1]: import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt In [2]: #创建一个矩阵 a = np.array([[1, 2], [3, 4]]) ...
分类:
编程语言 时间:
2019-11-22 09:12:22
阅读次数:
117
numpy 与pandas In [46]: import numpy as np import pandas as pd np.add()/df.add() 加法运算 + np.aubtract()/df.aubtract() 减法运算 - np.megative() 负数运算 - np.mult ...
分类:
其他好文 时间:
2019-11-22 00:49:14
阅读次数:
95
import pymysql import pandas as pd In [4]: conn=pymysql.Connect("192.168.1.8","root","Password","mysqljingjie",charset="utf8") conn #建立连接,连接之后打印conn'查 ...
分类:
数据库 时间:
2019-11-21 22:59:02
阅读次数:
129
数据映射, 离散化, 异常值, 重采样, one-hot coding.... ...
分类:
其他好文 时间:
2019-11-21 22:56:35
阅读次数:
102
1:数据源 Hollywood Movie Dataset: 好莱坞2006-2011数据集 实验目的: 实现 统计2006-2011的数据综合统计情况,进行数据可视化 gitee地址: https://gitee.com/dgwcode/an_example_of_py_learning/tree ...
分类:
其他好文 时间:
2019-11-21 22:35:01
阅读次数:
100
处理数据的时候往往需要对原始数据进行类型转换和预览等操作,下面介绍常用的处理预览和数据转换方法 预览:例: import pandas as pdsec_weather = pd.read_table(r'D:\weather.csv',sep=',')sec_weather.head() 如果只需 ...
分类:
其他好文 时间:
2019-11-21 11:58:39
阅读次数:
114
# -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup import lxml import json import re import time import tushare as ts import pandas ...
分类:
其他好文 时间:
2019-11-21 11:53:49
阅读次数:
86