X-Received: by 2002:ac8:4114:: with SMTP id q20-v6mr2462028qtl.54.1530085045231; Wed, 27 Jun 2018 00:37:25 -0700 (PDT) X-Received: by 2002:a0d:d386:: with SMTP id v128-v6mr435356ywd.1.1530085045055; Wed, 27 Jun 2018 00:37:25 -0700 (PDT) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!h2-v6no696021qtp.0!news-out.google.com!u13-v6ni252qtg.0!nntp.google.com!h2-v6no696012qtp.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: fr.comp.lang.python Date: Wed, 27 Jun 2018 00:37:24 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.57.141.147; posting-account=j7RfrwoAAAAicih7x4Vk4_CymP8Ot8Wg NNTP-Posting-Host: 193.57.141.147 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <76ac017a-9b98-4ea8-8114-e4861dcf14ff@googlegroups.com> Subject: Suppression des ligne d'un fichier csv en python. From: achourbouarab5@gmail.com Injection-Date: Wed, 27 Jun 2018 07:37:25 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 22 Xref: csiph.com fr.comp.lang.python:3094 Bonjour, Je voulais manipuler sur un fichier csv qui contient plus de un million de = donn=C3=A9es. SVP, je cherche un moyen au une instruction pour =C3=A9liminer les lignes q= ui ne portent pas des informations dans ce fichier sachant jusqu'=C3=A0 mtn= j'ai ouvert le fichier mais j'en sais pas comment utiliser la fonction par= exemple filter() pour =C3=A9liminer toute les lignes vide: =20 import pandas import numpy as np import re import csv # LIRE LE FICHIERLOG.CSV file=3Dopen("fichierLog.csv","r") test=3Dcsv.reader(file) for row in test: print(row) Merci d'avance