Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dropna not working
#1
Hi guys,

I am extracting tables using Pandas and want to get rid of empty rows in the dataframe. One of the tables looks like this:

Output:
Instrument Price Order Date Type Lots Gap Duration Note 0 nnNZD/USDnn nnSelln0.73250 Sep 27, 2016 7:17pm Limit 41 189 weeks 1 2 3 nnGBP/CHFnn nnSelln1.32000 Sep 1, 2016 11:33am Limit 595 193 weeks 4 5
so to delete empty rows I use in code:

df.dropna(axis = 0, how = 'all', inplace=True)
Unfortunately does not work!

Any ideas please?
Reply


Messages In This Thread
Dropna not working - by WiPi - May-15-2020, 12:01 PM
RE: Dropna not working - by scidam - May-15-2020, 12:09 PM
RE: Dropna not working - by hussainmujtaba - May-15-2020, 12:20 PM
RE: Dropna not working - by WiPi - May-15-2020, 01:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Shocked kindly support with this dropna function not working gheevarpaulosejobs 2 684 Jul-24-2023, 03:41 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020