第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

嵌入式 R 嘗試除了添加循環(huán)

嵌入式 R 嘗試除了添加循環(huán)

慕尼黑8549860 2021-07-13 13:14:20
我作為 python/R 新手關(guān)注下面的博客,并且在向下面的代碼中添加循環(huán)語(yǔ)句時(shí)遇到問(wèn)題。目前我能夠讓代碼完整運(yùn)行,但只輸出 1 個(gè)客戶的季節(jié)性標(biāo)志。我希望它為我的所有客戶循環(huán)運(yùn)行。datamovesme.com/2018/07/01/seasonality-python-code##Here comes the R code piece          try:          seasonal = r('''           fit<-tbats(customerTS, seasonal.periods = 12, use.parallel = TRUE)          fit$seasonal          ''')      except: seasonal = 1      seasonal_output = seasonal_output.append({'customer_id':customerid, 'seasonal': seasonal}, ignore_index=True)      print(f' {customerid} | {seasonal} ')print(seasonal_output)seasonal_output.to_csv(outfile)我嘗試了很多代碼組合來(lái)讓它循環(huán),太多了,無(wú)法在此列出。該博客顯示了我們可用的現(xiàn)有數(shù)據(jù)框和時(shí)間序列對(duì)象。我不確定使用哪一個(gè)以及如何將它傳遞給 R 代碼。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 182 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)