Keep getting timed out error - only running sample codes

Have you tried access “Hos to troubleshoot this error” page @lyang15 ?

1 Like

Hi @lyang15,

You can try clearing your screen and pasting in the code below:

import pandas as pd
traffic = pd.read_csv('traffic_sao_paulo.csv', sep=';')
traffic['Slowness in traffic (%)'] = traffic['Slowness in traffic (%)'].str.replace(',' ,  '.')
traffic['Slowness in traffic (%)'] = traffic['Slowness in traffic (%)'].astype(float)

I think the code above is the same as your screenshot, but I could not enlarge the screenshot to see the entire code.

I ran the above code, and this was the output:

Variables


floattype (<class ‘type’>)

float

trafficDataFrame (<class ‘pandas.core.frame.DataFrame’>)

3 Likes