I have a dask dataframe with thi structure:
Dask DataFrame Structure:
timestamp bid offer high low mid_open change change_pct market_delay market_state update_time
npartitions=76
float64 float64 float64 float64 float64 float64 float64 float64 object object object
Dask Name: read-csv, 76 tasks
When I try to add a new columen called ds that uses the timestamp:
import pytz
tz = pytz.timezone('Europe/London')
kk['ds'] = datetime.datetime.fromtimestamp(float(kk.timestamp), tz)
I get the error:
TypeError: Series.__float__ returned non-float (type function)