Different way of storing data in pandas?

Q What are the different way for storing data in the dataframe?

@What are the difference in storing data? Example -:

df[“column”]= code

variable = code

Probably this will help you:

df["column"]= code
Assuming that the df variable references to a DataFrame object, Here you are creating a new column (Series) or replacing the value of one of the columns in a Pandas DataFrame object

variable = code
You are creating or updating a Python variable.