I have df with column with time like this:

```
time
12:30
12:15
12:00

```

I need to have it in float type like this:

```
time
12.5
12.25
12.00

```

I have tried:

```
df.time = df.time.replace(":", ".", regex=True).astype(float)

```

but I have unsatisfactory result, like this:

```
time
12.3
12.15
12.00

```

Any idea please?