题解 | #快递站点信息#

快递站点信息

https://www.nowcoder.com/practice/c32d54b505c44133a575cb02993d0835

import sys

'''
for line in sys.stdin:
    a = line.split()
    print(int(a[0]) + int(a[1]))
'''
import pandas as pd 
df = pd.read_csv('Nowcoder.csv',dtype = object)
list1 = ['Destination']
print(df['Destination'][(df.Type=='1') & (df.Date == '2022/6/18')])
#print(df1)

第11行如果

df['Destination'][(df.Type=='1') & (df.Date == '2022/6/18')]

改为 df[list1][(df.Type=='1') & (df.Date == '2022/6/18')]

就会输出dataframe格式的数据,就不对了

全部评论

相关推荐

点赞 评论 收藏
分享
缒梦&独舞:这家公司是这样的,去年给我实习offer了,不过也是面着玩儿的,他周六还要去做公益志愿活动
点赞 评论 收藏
分享
CARLJOSEPH...:宝宝你戾气太大了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务