随笔分类 -  python可视化

摘要:format功能 格式(填充)对齐,可以格式化任何对象,包括字符串,数值等 #format函数会return字符串结果,但不会打印 # 1. 格式化填充单个对象 print( format(text, '=>20s') ) # ' Hello World' # =:符号填充 # > 内容右对齐, < 阅读全文
posted @ 2020-11-06 11:36 Parallax 阅读(265) 评论(0) 推荐(0) 编辑
摘要:Instantly make your loops show a smart progress meter - just wrap any iterable with tqdm(iterable) tqdm 跨平台的针 对可迭代对象进行封装 实现的进度条显示的python库.(仅对循环的迭代进度及速 阅读全文
posted @ 2020-11-06 10:50 Parallax 阅读(192) 评论(0) 推荐(0) 编辑
摘要:lambda:匿名函数,冒号左边是匿名函数的参数,右边是匿名函数的返回值 g = lambda x,y:x+y g(1,2)#不加map,lambda不接受迭代参数表 map(func,args_iterable) 第一个参数为一个函数,第二个参数为迭代器 # 迭代器里的每个元素成为函数的参数,遍历 阅读全文
posted @ 2020-10-30 09:55 Parallax 阅读(159) 评论(0) 推荐(0) 编辑
摘要:seaborn是基于DataFrame级的可视化。 matplotlib就是seaborn的底层。 1 import matplotlib.pyplot as plt 2 import numpy as np 3 import pandas as pd 4 import seaborn as sns 阅读全文
posted @ 2018-10-20 16:20 Parallax 阅读(419) 评论(0) 推荐(0) 编辑
摘要:首先补充一下python shell,ipython shell及jupyter概念。 python shell:安装python后系统终端进入的输入界面,不好用。 ipython shell::安装ipython后即有,通过anaconda终端(anaconda prompt)输入ipython进 阅读全文
posted @ 2018-10-19 03:39 Parallax 阅读(151) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示