449backup get weekly tweets

Posted alex-bn-lee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了449backup get weekly tweets相关的知识,希望对你有一定的参考价值。

import pandas as pd
from datetime import datetime

fn = r"D:OneDrive - UNSW	weets_flu.csv"
df = pd.read_csv(fn)
for i in range(len(df)):
	t = df.iloc[i][‘created_at‘]
	w = datetime.strptime(t, "%Y-%m-%d %H:%M:%S").strftime("%W")
	ws.append(w)

ws = []
df[‘ws‘] = ws
df[‘ws‘].value_counts()

 

import pandas as pd
from datetime import datetime

fn = r"D:OneDrive - UNSW	weets_flu.csv"
df = pd.read_csv(fn)
for i in range(len(df)):
	t = df.iloc[i][‘created_at‘]
	w = datetime.strptime(t, "%Y-%m-%d %H:%M:%S").strftime("%W")
	ws.append(w)

ws = []
df[‘ws‘] = ws
df[‘ws‘].value_counts()

wss = []

for i in a.index:
	wss.append((i, a[i]))

sorted(wss, key=lambda x:x[0])
[(‘12‘, 56), (‘13‘, 22), (‘14‘, 41), (‘15‘, 52), (‘16‘, 25), (‘17‘, 45), (‘18‘, 63), (‘19‘, 54), (‘20‘, 51), (‘21‘, 143), (‘22‘, 77), (‘23‘, 53), (‘24‘, 133), (‘25‘, 93), (‘26‘, 77), (‘27‘, 125), (‘28‘, 63), (‘29‘, 67), (‘30‘, 56), (‘31‘, 67), (‘32‘, 62), (‘33‘, 67), (‘34‘, 54), (‘35‘, 41), (‘36‘, 43), (‘37‘, 24), (‘38‘, 29), (‘39‘, 33), (‘40‘, 14)]

  

 

以上是关于449backup get weekly tweets的主要内容,如果未能解决你的问题,请参考以下文章

rsync client backup scripts

寒假每日一题(入门组)week6 完结

全网备份项目-脚本编写

markdown 这篇文章没有更长的工作! Twitter推出了针对Web客户端黑客的修复程序。 (原文:Force enable cramming(280个字符的twee

Calendar.get()方法--- WEEK_OF_YEAR MONTH

keepalived+mysql backup服务器可ping通过vip但telnet vip+3306失败问题