Learn practical skills, build real-world projects, and advance your career

Create DataFrames

Since a new concept is being introduced, it is beneficial to explore the concept first using simple DataFrames. Once you understand the usage and the capabilities of these concepts, you can think of ways to apply these capabilities as and when needed.

import pandas as pd
df_1 = {"col1":[1,2,3,4], "col2": [5,6,7,8]}
df_2 = {"col1":[11,12,13,14], "col2": [15,16,17,18]}
df1 = pd.DataFrame(df_1)
df2 = pd.DataFrame(df_2)
df1