Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

dataframe - ceil column in a data frame python

I created a column in a data frame in python, but I need to ceil it, but when I try to, is giving me an error, and can't find a way to solve it.

TypeError: ufunc 'ceil' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

df_count['Days Since WD'] = (curr_time - df_count['Activity Date'])
df_count['Days Since WD'] = df_count['Days Since WD'].apply(np.ceil)
question from:https://stackoverflow.com/questions/65838308/ceil-column-in-a-data-frame-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...