Python for Data Analysis
蚀年
这个作者很懒,什么都没留下…
展开
-
[Python Crash Course] DataVisual_Basic
import matplotlib.pyplot as plt# change feature #plt.title("Square Numbers", fontsize=24) # fontsize: size of the textplt.xlabel("x_value", fontsize=14)plt.ylabel("y_value", fontsize=14)# set the range #plt.axis([0, 100, 0, 100]) .原创 2020-08-01 14:12:59 · 99 阅读 · 0 评论 -
[Python Crash Course] Basics_Class
class Dog: def __init__(self, name, age): self.name = name self.age = age self.weight = 10 self.height = 0 def sit(self): print(self.name + " is sitting.") def sleep(self): print(self.name + " .原创 2020-08-01 11:15:25 · 97 阅读 · 0 评论 -
[Python Crash Course] Bisics_While
# simple message #message = input("input something:")print("hello " + message)# numerical #age = input("input your age:")age = int(age) # int()if age > 18: print("adult")else: print("child")# 循环输入 #print("while Input:")messag.原创 2020-08-01 10:40:50 · 67 阅读 · 0 评论 -
[US Baby Names]Error:‘year‘ is both an index level and a column label, which is ambiguous.
ERROR:[pivot table] : 'some' is both an index and a column label.SOLVE:pandas.Series.dropleveltotal_births_advance = top_1000_plot.pivot_table('births', index='year', columns='name', aggfunc=sum)[year]同时是index和column,出现矛盾。打印top_1000,长这..原创 2020-07-11 10:59:02 · 5393 阅读 · 1 评论