Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

dataframe - Remove the NaT python

I have a dataframe (df):

 Proj    phase 1                 phase 2                     
0   A   [AA]                    [NaT, CD]           
1   B   [NaT]                   [CD, EE]
2   C   [NaT, NaT]              [FF, NaT]   

so I want to remove all the NaT, so I will get as e result:

Proj    phase 1                 phase 2
0   A   [AA]                    [CD]
1   B                           [CD, EE]
2   C                           [FF]

Any suggestion ?

thank you

question from:https://stackoverflow.com/questions/65937957/remove-the-nat-python

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

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...