摘要: Pandas基本用法 1、导入pandas库 import pandas as pd 2、导入文件 .csv 使用pd.read_csv(),常用的参数入下: **filepath_or_buffer :**文件地址,可以简略写也可以完整写。 df = pd.read_csv('./datafile 阅读全文
posted @ 2020-10-23 18:38 ZeroCrow 阅读(454) 评论(0) 推荐(0)
摘要: Markdown基本数学公式语法 阅读全文
posted @ 2020-09-14 00:35 ZeroCrow 阅读(453) 评论(0) 推荐(0)
摘要: Python内置基本函数 zip()函数 返回元组列表。 a = [1, 2, 3] b = ['a', 'b', 'c'] c = [4, 5, 6, 7, 8] zip1 = zip(a, b) zip2 = zip(a, c) print(list(zip1)) print(list(zip2 阅读全文
posted @ 2020-09-13 20:01 ZeroCrow 阅读(156) 评论(0) 推荐(0)
摘要: Python字符串操作 访问字符串的元素 str = 'Hello World' print(str[0]) print(str[-1]) print(str[0:5]) 输出: H d Hello 字符串的拼接 str = 'Hello' str2 = ' World' print(str * 3 阅读全文
posted @ 2020-09-12 21:47 ZeroCrow 阅读(221) 评论(0) 推荐(0)
摘要: Python列表操作 创建列表 list1 = ['physics', 'chemistry', 1997, 2000] list2 = [] #空列表 访问列表元素 list1 = ['physics', 'chemistry', 1997, 2000] print(list1[0]) print 阅读全文
posted @ 2020-09-12 00:21 ZeroCrow 阅读(121) 评论(0) 推荐(0)
摘要: 1、GitHub创建个人仓库 登录GitHub创建账号,同时拥有一个自己设定的用户名(username)。点击New Repositories创建仓库。仓库名必须为username.github.io的形式。建议使用公有(Public)仓库,私有(Private)仓库创建的个人主页推送时会收费。点击 阅读全文
posted @ 2020-08-18 21:52 ZeroCrow 阅读(242) 评论(0) 推荐(0)