série.Series to dataframe
df = pd.DataFrame([s])
print (df)
product_id_y count
6159402 1159730 1
Stupid Salmon
df = pd.DataFrame([s])
print (df)
product_id_y count
6159402 1159730 1
import pandas as pd
a = [1, 7, 2]
myvar = pd.Series(a)
print(myvar)
pandas.Series( data, index, dtype, copy)
In [3]: s = pd.Series([1, 3, 5, np.nan, 6, 8])
In [4]: s
Out[4]:
0 1.0
1 3.0
2 5.0
3 NaN
4 6.0
5 8.0
dtype: float64