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.

Pandas: performance optimization for recursion [duplicate]

This question already has answers here: Does pandas iterrows have performance issues? (8 answers) How can I iterate over rows in a Pandas DataFrame? (34 answers) Closed 8 mins ago. The community is reviewing whether to reopen this question as of 1 min ago. I have a code which looks like for index, row in […]