IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Python Discussion :

Aide avec l'exportation de fichier csv [Python 3.X]


Sujet :

Python

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre à l'essai
    Homme Profil pro
    Lycéen
    Inscrit en
    Mai 2023
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pyrénées Atlantiques (Aquitaine)

    Informations professionnelles :
    Activité : Lycéen

    Informations forums :
    Inscription : Mai 2023
    Messages : 4
    Par défaut Aide avec l'exportation de fichier csv
    j'ai un fichier csv sous cette forme :

    Album;groupe;année;classement Top 50
    Master of Puppets;Metallica;1986;1
    Paranoid;Black Sabbath;1970;10
    Rage against the machine;Rage against the machine;1992;5
    High;David Hallyday;1989;8
    Ride the ligthning;Metallica;1984;2
    Rust in peace;Megadeth;1990;12
    Laughing stock;Talk Talk;1991;7
    Let love rule;Lenny Cravitz;1989;2
    The unforgiven;Metallica;1991;1
    Wanna take my time;David Hallyday;1989;3
    Let's to go to bed;The Cure;1984;1
    give me one reason;Tracy Chapman;1996;1
    Spirit of Eden;Talk Talk;1988;9
    Slagehammer funky;Peter Gabriel;1986;6
    Don't tread on me;Metallica;1991;2
    I don't want a lover;Texas;1989;5
    Listening;David Hallyday;1989;8
    Disintegration;The Cure;1989;4
    Enter Sandman;Metallica;1991;6

    mais quand je le copie et modifie dans la fonction suppr() il y des problèmes de saut de ligne :

    Album;groupe;année;classement Top 50

    Master of Puppets;Metallica;1986;1

    Paranoid;Black Sabbath;1970;10

    Rage against the machine;Rage against the machine;1992;5

    High;David Hallyday;1989;8

    Ride the ligthning;Metallica;1984;2

    Rust in peace;Megadeth;1990;12

    Let love rule;Lenny Cravitz;1989;2

    Wanna take my time;David Hallyday;1989;3

    Let's to go to bed;The Cure;1984;1

    give me one reason;Tracy Chapman;1996;1

    Spirit of Eden;Talk Talk;1988;9

    Slagehammer funky;Peter Gabriel;1986;6

    I don't want a lover;Texas;1989;5

    Listening;David Hallyday;1989;8

    Disintegration;The Cure;1989;4

    lover;Texas;1989;5
    Listening;David Hallyday;1989;8
    Disintegration;The Cure;1989;4
    Enter Sandman;Metallica;1991;6

    quelqu'un pourrait il m'aider s'il vous plait ?
    Fichiers attachés Fichiers attachés

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 6
    Dernier message: 09/01/2015, 15h38
  2. [EG] Exporter un fichier CSV avec un nom dynamique
    Par xav2229 dans le forum Outils BI
    Réponses: 0
    Dernier message: 04/01/2012, 15h33
  3. Export en fichier CSV d'un select sql ?
    Par Devilstuff dans le forum MS SQL Server
    Réponses: 1
    Dernier message: 17/01/2010, 15h05
  4. Export de fichiers csv
    Par sabredebois dans le forum Outlook
    Réponses: 1
    Dernier message: 10/02/2009, 16h21
  5. [A-03] Export vers fichier CSV (format)
    Par Pownee dans le forum VBA Access
    Réponses: 3
    Dernier message: 06/02/2009, 18h12

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo