2021年3月25日星期四

how can I rewrite this code to make it easier to read?

start=2014  df = pd.DataFrame({'age':past_cars_sold,}, index = [start, start+1,start+2,start+3,start+4,start+5,start+6])    

is there an easier way to rewrite this code. Right now i have do it one at a time and just want to know if there is an easier way to rewrite this.

https://stackoverflow.com/questions/66810852/how-can-i-rewrite-this-code-to-make-it-easier-to-read March 26, 2021 at 11:56AM

没有评论:

发表评论