Rather than create 2 temporary dfs you can just pass these as params within a dict using the DataFrame constructor:
pd.DataFrame({'email':sf.index, 'list':sf.values})
There are lots of ways to construct a df, see the docs
More Related Contents:
- error when applying function to a series object
- How to convert index of a pandas dataframe into a column
- Pandas filtering for multiple substrings in series
- df.append() is not appending to the DataFrame
- Is there a simple way to change a column of yes/no to 1/0 in a Pandas dataframe?
- Combining two Series into a DataFrame in pandas
- Pandas selecting by label sometimes return Series, sometimes returns DataFrame
- how do I calculate a rolling idxmax
- Remove name, dtype from pandas output of dataframe or series
- Convert pandas data frame to series
- What is the fastest and most efficient way to append rows to a DataFrame?
- Compute the running (cumulative) maximum for a series in pandas
- Using replace efficiently in pandas
- Python Pandas iterate over rows and access column names
- Python Pandas : pandas.to_datetime() is switching day & month when day is less than 13
- Difference between df[x], df[[x]], df[‘x’] , df[[‘x’]] and df.x
- How to reversibly store and load a Pandas dataframe to/from disk
- How do I transpose dataframe in pandas without index?
- How to select all columns whose names start with X in a pandas DataFrame
- Remove reverse duplicates from dataframe
- Pandas finding local max and min
- How to split text in a column into multiple rows
- NLTK-based text processing with pandas
- python pandas dataframe slicing by date conditions
- Convert list into a pandas dataframe
- Python Pandas: Convert “.value_counts” output to dataframe
- Remove NaN/NULL columns in a Pandas dataframe?
- Group DataFrame in 5-minute intervals
- Convert pandas DataFrame into list of lists [duplicate]
- Got continuous is not supported error in RandomForestRegressor