春日部来的

【已棄用】永久遷移至https://chunribu.github.io/blog [Deprecated] Permanently migrate to https://chunribu.github.io/blog

Showing all posts tagged python:

Python自动化运维

利用python管理系统、文件和应用程序,自动化执行,提高工作效率。查找文件需要导入自带的os模块,re模块用于正则匹配。import os import re def find(pattern, path='.', file_only=False, dir_only=False): ''' 递归查找指定路径下符合要求的文件和(或)路径。 ''' res = [] for root, dirs, files in os.walk(path)...

数据动态可视化,python-plotly.express使用基础

利用plotly快速实现数据的动态可视化,生成一定顺序的动画: px是一个高级api,除了可视化为scatter,还可以由DataFrame数据直接生成 'bar', 'bar_polar', 'box', 'choropleth_mapbox', 'density_contour', 'density_heatmap', 'density_mapbox', 'histogram', 'line', 'line_3d', 'line_geo', 'line_mapbox', 'line_polar'...

Python-seaborn 数据可视化

import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as snsIn [28]:crash_df=sns.load_dataset("car_crashes")In [20]:crash_df.head()Out[20]:totalspeedingalcoholnot_distractedno_previousins_premiumins_lossesabbrev018.87....

Python分析冠状病毒基因组 | Biopython构建系统发生树,以冠状病毒基因组序列为例(COVID-19,SARS,MERS,EBOLA),最大似然估计法(ML)

系统发生树 定义 系统发生树(phylogenetic tree)是表明被认为具有共同祖先的各物种相互间演化关系的树分类是否有根? - 有根树:具有方向的树 - 无根树:没有方向,其中线段的两个演化方向都有可能基因树和物种树构建方法计算的精度和时间均依次增大非加权分组平均法:UPGAM(Unweighted pair group method with arithmetic mean)矩阵法:邻接法 neighbor-joining (NJ)简约法:最大简约法 maximum parsimony (...