pandas
薛定谔的智能
这个作者很懒,什么都没留下…
展开
-
pandas分析各国家交易情况
数据集来源: https://archive.ics.uci.edu/ml/datasets/Online%20Retail #coding:utf-8import pandas as pdimport osimport seaborn as snsimport matplotlib.pyplot as pltRAW_DATA_FILE = './data/online_ret...原创 2019-01-06 17:58:06 · 1909 阅读 · 0 评论 -
pandas基础知识
一,创建seriesimport pandas as pdcountries = ['中国', '美国', '澳大利亚']countries_s = pd.Series(countries)print(type(countries_s))print(countries_s)print(countries_s.values)二,添加索引名import pandas a...原创 2019-01-02 18:03:02 · 794 阅读 · 0 评论 -
python解析xml+得到pascal voc xml格式用于目标检测+美化xml
1.python解析xml img_path='./data/001.tif' xml_path='./xml/001.xml' img=cv2.imread(img_path) # cv2.imshow('img', img) # cv2.waitKey(0) print(img.shape) try: xml...原创 2019-01-23 14:46:42 · 1450 阅读 · 0 评论 -
python读取与写入json+csv变成coco的json文件+安装labelme
一.python读取与输出json读取jsonpath = './image/003.json'with open(path) as file: json_info = json.load(file) #print(len(json_info['shapes']))如果是str形式的用json.loads写入json with op...原创 2019-04-12 20:13:35 · 2255 阅读 · 4 评论