上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: import pandas as pd if __name__ == '__main__': student = pd.read_excel("C:/Users/18124/Desktop/pandas/019_求和_求平均_统计引导/Students.xlsx", \ engine="openpy 阅读全文
posted @ 2021-02-17 20:46 火焰马 阅读(106) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd # 校验函数 : 校验数据; 校验数据关系 # 校验结果 : run; excel def score_validation(row): # 方法一 try: assert 0 <= row.Score <= 100 except: print(f"#{row 阅读全文
posted @ 2021-02-17 20:39 火焰马 阅读(62) 评论(0) 推荐(0) 编辑
摘要: ''' 散点图: 1 下图房屋面积(sqft_basement)与价格关系(price) 直方图: 1 下图房子集中在什么价位 2 下图面积集中在什么面积 密度图: 1 下图房子多大概率70w ''' import pandas as pd import matplotlib.pyplot as p 阅读全文
posted @ 2021-02-17 20:33 火焰马 阅读(113) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': weeks = pd.read_excel("C:/Users/123/Desktop/pandas/013_折线趋势图_叠加区域图/Orde 阅读全文
posted @ 2021-02-17 20:32 火焰马 阅读(172) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': student = pd.read_excel("C:/Users/123/Desktop/pandas/012_饼图/Students.xl 阅读全文
posted @ 2021-02-17 20:31 火焰马 阅读(42) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import matplotlib.pyplot as plt if __name__ == '__main__': students = pd.read_excel("C:/Users/123/Desktop/pandas/010_叠加柱状图_水平柱状图/S 阅读全文
posted @ 2021-02-17 20:26 火焰马 阅读(67) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np def get_circumcircle_area(l, h): r = np.sqrt(l**2 + h**2) / 2 return r**2 * np.pi def warapper(row): result = g 阅读全文
posted @ 2021-02-17 20:24 火焰马 阅读(54) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np if __name__ == '__main__': page_1 = pd.read_excel("C:/Users/18124/Desktop/pandas/027_行操作/Students.xlsx", sheet_ 阅读全文
posted @ 2021-02-17 20:23 火焰马 阅读(66) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import seaborn as sns # 表示数值大小 - 背景颜色深浅 color_map = sns.light_palette("green", as_cmap=True) students = pd.read_excel("C:/Users/18 阅读全文
posted @ 2021-02-17 20:22 火焰马 阅读(82) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd # 标记 - 不及格 def low_score_read(s): if s < 60: color = "red" else: color = "black" return f"color:{color}" # 标记 - 最高分 def highest_sc 阅读全文
posted @ 2021-02-17 20:21 火焰马 阅读(65) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页