= df['subject_marks'].astype(float) code example
Example 1: how to convert a pandas series from int to float in python
df['DataFrame Column'] = df['DataFrame Column'].astype(float)
Example 2: set type of column pandas
df.astype(int)
df['DataFrame Column'] = df['DataFrame Column'].astype(float)
df.astype(int)