Skip to main content

All Questions

0 votes
3 answers
77 views

Do logical operations in 2 column simmultaneously in Pandas

I have one Dataframe name df - id year month target1 0 324 2019.0 1.0 100.0 1 325 2019.0 3.0 100.0 2 326 2019.0 10.0 100.0 3 327 2019.0 11.0 ...
Gaurav Gupta's user avatar
0 votes
1 answer
11k views

Plotting excel data using pandas

I want to plot data in the following excel file using pandas package in python . I want to plot column B vs Column C, and column D vs Column E, column F vs Column G and column H vs Column I without ...
Tonikami04's user avatar
0 votes
1 answer
3k views

pandas return index of rows having more than one 'NA' value

my code: import pandas as pd from sklearn.preprocessing import LabelEncoder column_names = ["age","workclass","fnlwgt","education","education-num","marital-status","occupation","relationship","race","...
Pratik Kumar's user avatar
  • 2,231
12 votes
3 answers
16k views

python3 + Pandas styles + Change alternate row color

Hi i am using Pandas and displaying a table. I there a function to apply alternate row color to make it clear to read. Using below code I am sending table in mail and it works. my code: count = 1000 ...
Vinod HC's user avatar
  • 1,627