Created
May 4, 2022 12:00
-
-
Save masiarek/84ed4bcacbf9c5b63c3e0f64b085f428 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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