从datetime类型的数据列 birthday 中获取年份,正确 的方法是:
A: frame['birthday'].dt.year
B: frame['birthday'].year
C: datetime.now().year
D: pd.to_datetime(frame['birthday'])
A: frame['birthday'].dt.year
B: frame['birthday'].year
C: datetime.now().year
D: pd.to_datetime(frame['birthday'])
举一反三
- 【】类型表示年份;【】类型表示日期; A: DATE、TIME B: YEAR、DATE C: YEAR、DATETIME D: YEAR、TIME
- 程序:class Birthday{int year;int month;int day;public Birthday(int year,int month,int day){year = year; month = month; day = day;}public static void main(String[] args){Birthday birth = new Birthday(1980,10,22); System.out.println(year);}}程序运行后的输出是哪项? A: 1980 B: 10 C: 22 D: 0 E: 编译出错
- 在SELECT语句中,与排序有关的关键字是______。 A: ORDER BY B: LIMIT C: DESC D: ASC E: : ACD F: 、查询1997,1999年出生的同学信息,正确的SELECT语句是______。 G: SELECT * FROM student WHERE YEAR(birthday) NOT IN(1997,1999); H: SELECT * FROM student WHERE YEAR(birthday)=1997 OR YEAR(birthday)=1999; I: SELECT * FROM student WHERE YEAR(birthday) IN(1997,1999); J: SELECT * FROM student WHERE YEAR(birthday) EXISTS(1997,1999);
- 定义如下结构体来描述一个人的基本情况: struct date {int year; int month; int day; }; struct person {char name[20]; char sex; struct date birthday; }man;如果某人的生日是1988年10月9日,下列对生日的正确赋值是 。 A: man·birthday·year=1988 man·birthday·.month=10 man·birthday·day=9 B: birthday·year=1988birthday·month=10birthday·day=9 C: man·year=1988man·month=10man·day=9 D: year=1988 month=10 day=9
- Happy birthday! By this time of next year, you _________ (turn) 18.