最佳答案
我有以下DataFrame:
daysago line_race rating rw wratingline_date2007-03-31 62 11 56 1.000000 56.0000002007-03-10 83 11 67 1.000000 67.0000002007-02-10 111 9 66 1.000000 66.0000002007-01-13 139 10 83 0.880678 73.0962782006-12-23 160 10 88 0.793033 69.7869422006-11-09 204 9 52 0.636655 33.1060772006-10-22 222 8 66 0.581946 38.4084082006-09-29 245 9 70 0.518825 36.3177522006-09-16 258 11 68 0.486226 33.0633812006-08-30 275 8 72 0.446667 32.1600512006-02-11 475 5 65 0.164591 10.6984232006-01-13 504 0 70 0.142409 9.9686342006-01-02 515 0 64 0.134800 8.6272192005-12-06 542 0 70 0.117803 8.2462382005-11-29 549 0 70 0.113758 7.9630722005-11-22 556 0 -1 0.109852 -0.1098522005-11-01 577 0 -1 0.098919 -0.0989192005-10-20 589 0 -1 0.093168 -0.0931682005-09-27 612 0 -1 0.083063 -0.0830632005-09-07 632 0 -1 0.075171 -0.0751712005-06-12 719 0 69 0.048690 3.3596232005-05-29 733 0 -1 0.045404 -0.0454042005-05-02 760 0 -1 0.039679 -0.0396792005-04-02 790 0 -1 0.034160 -0.0341602005-03-13 810 0 -1 0.030915 -0.0309152004-11-09 934 0 -1 0.016647 -0.016647
我需要删除line_race
等于0
的行。什么是最有效的方法?