
Python
Python学习笔记
数能工作室
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
在Python中执行类似Excel的“ vlookup”方法
df1 = |---------------------|------------------|------------------| ID_Machine Event_Duration Timestamp 1 34 213 --------------------- ------------------ ------------------ 1 97 572 --------------------- ------------------ ------------------原创 2020-12-18 14:57:11 · 478 阅读 · 0 评论 -
Python3使用pyecharts在地图上绘制航线
from pyecharts import options as opts from pyecharts.charts import Geo from pyecharts.globals import ChartType, SymbolType import os os.chdir(r'.\Module\pyecharts') # 创建工作路径 symbol_dict = { ...原创 2020-03-04 09:16:26 · 4869 阅读 · 1 评论 -
Python3将CSV文件的行列进行转换
详细代码和解析如下: import pandas as pd df = pd.read_csv(r".\Data-Structures-and-Algorithms\built-in functions\weather.csv") data = df.values # data是数组,直接从文件读出来的数据格式是数组 index1 = list(df.keys()) # 获取原有csv文件的...原创 2020-02-25 23:14:40 · 5859 阅读 · 3 评论 -
python的条件语句
一、python的条件语句 if语句 var=100 if(var==100): print("变量var的值为100") print("Good bye!") while语句 >>> sum=0 >>> n=99 >>> while n>0: ... sum=sum+n ... n=n-1 ... >>...原创 2019-11-21 17:40:46 · 314 阅读 · 0 评论