why do we create dataframe with series code example
Example 1: create a dataframe python
import numpy as np
import pandas as pd
vect1=np.zeros(10)
vect2=np.ones(10)
df=pd.DataFrame({'col1':vect1,'col2':vect2})
Example 2: pandas series create
import pandas as pd
series = pd.Series()