Skip to content

Instantly share code, notes, and snippets.

@chathurawidanage
Last active June 1, 2021 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurawidanage/2d23e41eda0541cccc61ea1596114cd7 to your computer and use it in GitHub Desktop.
Save chathurawidanage/2d23e41eda0541cccc61ea1596114cd7 to your computer and use it in GitHub Desktop.
from pycylon import DataFrame, read_csv
df1 = read_csv("file1.csv")
df1.set_index([0])
df2 = read_csv("file2.csv")
df2.set_index([0])
join = df1.merge(df2, left_on=[0], right_on=[0])
print(join)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment