pandas.DataFrame.loc 通过标签或布尔数组访问一组行和列。 代码示例 import pandas as pd import numpy as np #利用列表创建...
- 转载文章
- 2023-04-25
语法格式 DataFrame.groupby(by=None, axis=0, level=None, as_index=True, sort=True, group_keys=_...
- 转载文章
- 2023-04-25
语法格式 pandas.DataFrame(data=None, index=None, columns=None, dtype=None, copy=None) 常用的几个参数解...
- 转载文章
- 2023-04-25
sklearn.linear_model.LogisticRegression-逻辑回归分类器
语法格式 class sklearn.linear_model.LogisticRegression(penalty='…
- 转载文章
- 2023-04-12
语法格式 numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)...
- 转载文章
- 2023-04-12
参考:https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html 语法格式 ndarra...
- 转载文章
- 2023-03-25
参考:https://numpy.org/doc/stable/reference/generated/numpy.zeros.html 语法格式 numpy.zeros(shap...
- 转载文章
- 2023-03-22
参考:https://biopython.org/wiki/Alphabet 作用: 1. 记录序列的分子类型(DNA, RNA或蛋白质), 2. 在序列、alignment、mo...
- 转载文章
- 2023-03-21
参考:sklearn.model_selection.train_test_split(*arrays, test_size=None, train_size=None, rand...
- 转载文章
- 2023-03-18
参考:https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.values.html...
- 转载文章
- 2023-03-17
test.fasta内容如下: >heavy EVQLVESGGGLVQPGGSLRLSCAASGFTLSGDWIHWVRQAPGKGLEWLGEISAAGGYTDYADSV...
- 转载文章
- 2023-03-17
参考:https://docs.python.org/zh-cn/3/library/copy.html 介绍 Python copy模块包括copy()和deepcopy()两函...
- 转载文章
- 2023-03-17
参考:https://numpy.org/doc/stable/reference/generated/numpy.arange.html 语法格式 numpy.arange([s...
- 转载文章
- 2023-03-16
import pandas as pd d1 = [[3,"negative",2],[4,"negative",6],[11,"positive",0],[12,"positiv...
- 转载文章
- 2023-03-16
pandas.DataFrame.sample-从DataFrame或Series对象中随机取样 DataFrame.sample(n=None, frac=None, repla...
- 转载文章
- 2023-03-16
语法格式 pandas.concat(objs, *, axis=0, join='outer', ignore_index=False, keys=None, levels=No...
- 转载文章
- 2023-03-16
python pandas库总结-数据分析和操作工具
参考:https://pandas.pydata.org/ Input/output相关函数 pandas.read_e…
- 转载文章
- 2023-03-10
python os模块总结-目录、文件操作工具
os (operating system)是python标准库中的操作系统接口,提供了很多与操作系统进行交互的函数,可快…
- 转载文章
- 2023-03-10