• This project
    • Loading...
  • Sign in

2021-1-capstone-design2 / 2015104194

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2015104194
  • src
  • collection
  • pickle_to_csv_singer.py
  • GyuhoLee's avatar
    repository cleanup · c9b2f4f7
    c9b2f4f7
    GyuhoLee authored 2021-06-14 07:38:32 +0900
pickle_to_csv_singer.py 273 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import csv, pickle
from singer import *


data = []
with open('./data/singer.pickle', 'rb') as f:
    data = pickle.load(f)

f = open('./data/singer.csv', 'w', newline='', encoding='UTF-8')
wr = csv.writer(f)

for singer in data:
    wr.writerow(singer.getRow())

f.close()