Skip to content

Commit 02ccf94

Browse files
authored
Create 10-change-data-type.py
1 parent 50f8828 commit 02ccf94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

10-change-data-type.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pandas as pd
2+
3+
def changeDatatype(students: pd.DataFrame) -> pd.DataFrame:
4+
5+
students['grade'] = students['grade'].astype(int)
6+
return students
7+
8+
9+
# no companies listed

0 commit comments

Comments
 (0)