delete all columns name's "NaN" in Pandas DataFrame [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 10 months ago.
Improve this question
Please how to delete all columns name's "NaN" in Pandas DataFrame

Try this :
df = df.loc[:, df.columns.notna()]

Related

Pandas Data Transformation Request [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed yesterday.
Improve this question
Essentially, the request is to convert the wide format to normal format (may be using pandas melt and pivot function).
I have tried using pivot.

vertical data need to be in Horizontal form in excel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 days ago.
Improve this question
I have the below table in excel
and want to transpose like this
I trying with excel but now doing manually pls help mi with the quick solution

Calculate the 3 sigma value using python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have one data frame in python. How can I calculate the 3sigma value for each column of my data frame using python? please help me with this.
The command you're looking for is df.std() * 3

Average counts in a column with condition of another column in Pandas [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have dataframe like this
enter image description here
I need to find out the average close days of request Recycling
Please help me.
You can group by request and get the average.This will give average for each group
df.groupby("request")["Days to Close"].mean()

Pandas: Multiply a column based on a different columns condition [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am using Python with Pandas. How can I multiply a column by 1000 given another column has a certain string?
This should do it.
df['columnname'] = np.where(df['othercolumn'] == 'CertainString',
df['columnname'] * 1000,
df['columnname'])

Categories

Resources