Python Kaggle Flashcards

1
Q

Find out data type

A

Type()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Modulus

A

A % b

Integer remainder after division of a by b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Exponential

A

A ** b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Display function details

A

Help(function)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is method?

A
Function defined in the class
Example: df.head()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is attribute?

A
Variable connected to a class
Example: df.columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly