摘要:
import pandas as pd #sheet_name=None的意思是,一次性将所有的工作表都读取出来 dfs2 = pd.read_excel("test.xls",sheet_name=None) pd.concat(dfs2).to_excel("text.xlsx") 参考资料:h 阅读全文
摘要:
# %% import pandas as pd import numpy as np import matplotlib.pyplot as plt #解决中文显示问题 plt.rcParams['font.sans-serif'] = ['KaiTi'] # 指定默认字体 plt.rcParam 阅读全文
摘要:
# %% import pandas as pd import numpy as np # %% df = pd.read_csv('标普500财务数据项目.csv', sep=',') # %% df # %% atq = df.iloc[:, [0,1,2,4]] niq = df.iloc[: 阅读全文
摘要:
https://codeload.github.com/Kenguba/google-access-helper/zip/refs/heads/master 在以上网址下载对应的浏览器插件,然后按照说明安装浏览器拓展。 最后注册账号即可使用 阅读全文
摘要:
lists = np.unique(list1) 阅读全文
摘要:
generalized_word = np.array(generalized_word) generalized_word.tolist() generalized_word_list = [] for i in generalized_word: for j in i: generalized_ 阅读全文
摘要:
while np.nan in standard_word_list: standard_word_list.remove(np.nan) 阅读全文
摘要:
单列 其中B就代表excel表中的列索引 standard_word = pd.read_excel('合并.xlsx', usecols='B') 多列 其中C:AK就代表excel表中的列索引 generalized_word = pd.read_excel('合并.xlsx', usecols 阅读全文
摘要:
上方菜单栏中的“数据”选项卡 ——> “分列”。之后更改为特定的字符,然后即可进行分列操作 阅读全文
摘要:
def guolv(ciyu): if '(' in ciyu: return 1 elif ',' in ciyu: return 2 else: return 3 阅读全文