pandas.core.series.series à dataframe
>>> s = pd.Series(["a", "b", "c"],
... name="vals")
>>> s.to_frame()
vals
0 a
1 b
2 c
Stupid Salmon
>>> s = pd.Series(["a", "b", "c"],
... name="vals")
>>> s.to_frame()
vals
0 a
1 b
2 c
df = pd.DataFrame([s])
print (df)
product_id_y count
6159402 1159730 1
Series.to_frame(self, name=None)
Convert Series to DataFrame.
df = my_series.to_frame()