Relative Content

Tag Archive for pythonpandasnumpy

pandas kurtosis/skew bug?

I found some wired results from pandas skew/kurtosis. My pandas version is 2.2.2, numpy version is 2.0.0

np.where() when creating a new column

I’m trying to create a new “New” column in the Data Frame based on the existing ones: if the “Min date” column is null, then we take the data from the “Start Date” column, otherwise we take the date from the “Min date” in string format, concatenate it with the time from the “Time” column. We format the result in the date-time.