Skip to content

Instantly share code, notes, and snippets.

@masiarek
Created May 4, 2022 12:00
Show Gist options
  • Save masiarek/84ed4bcacbf9c5b63c3e0f64b085f428 to your computer and use it in GitHub Desktop.
Save masiarek/84ed4bcacbf9c5b63c3e0f64b085f428 to your computer and use it in GitHub Desktop.
import pandas as pd
import io, csv
A = """
k1,k2,a3
1,44,x
2,55,y
3,66,z"""
B = """
k1,k2,b3
1,44,ham
2,55,egg
NULL,NULL,NULL"""
C = """
c1,k2
NULL,NULL
bar,55
baz,66"""
a = A.split()
b = B.split()
c = C.split()
ra = csv.DictReader(a)
rb = csv.DictReader(B)
rc = csv.DictReader(C)
print(list(ra))
print(list(rb))
print(list(rc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment