Re: [Tutor] Delete unwanted rows

2014-04-09 Thread Mark Lawrence
On 09/04/2014 15:14, Peter Otten wrote: Alexis Prime wrote: However, pandas is a specialist topic and if you expect to work more with it you may want to learn the proper idiomatic way to do it. You should then ask again on a mailing list that is frequented by the pandas experts -- python-tutor i

Re: [Tutor] Delete unwanted rows

2014-04-09 Thread Peter Otten
Alexis Prime wrote: > Hello, > > My question is whether I should write a loop or a function to delete rows. > > I'm using pandas. But you may be able to help me as my question is about > the reasoning behind programming. > > I have a pandas dataframe that looks like this, covering all countries

Re: [Tutor] Delete unwanted rows

2014-04-09 Thread Mark Lawrence
On 09/04/2014 10:23, Alexis Prime wrote: Hello, My question is whether I should write a loop or a function to delete rows. I'm using pandas. But you may be able to help me as my question is about the reasoning behind programming. I have a pandas dataframe that looks like this, covering all cou

[Tutor] Delete unwanted rows

2014-04-09 Thread Alexis Prime
Hello, My question is whether I should write a loop or a function to delete rows. I'm using pandas. But you may be able to help me as my question is about the reasoning behind programming. I have a pandas dataframe that looks like this, covering all countries in the world, for over 200 rows and