Skip to content

Instantly share code, notes, and snippets.

@saaeiddev
Created September 18, 2022 13:36
Show Gist options
  • Save saaeiddev/4fb74f2f832bd61821ca3b2fc572f2db to your computer and use it in GitHub Desktop.
Save saaeiddev/4fb74f2f832bd61821ca3b2fc572f2db to your computer and use it in GitHub Desktop.
pandas DataFrame
import pandas as pd
# pandas DataFrame
data = {
"prices":[300 , 600 , 900] ,
"duration":[10 , 20 , 30]
}
df = pd.DataFrame(data)
print(df)
data2 = {
"weight":[120 , 100 , 80],
"duration":[1 , 3 , 11]
}
df2 = pd.DataFrame(data2)
print(df2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment