Creating a DataFrame From a Series

Let's try to create a DataFrame object from the series.

Create a DataFrame from a dictionary of series

Obviously, the DataFrame can be created from a list of series or a dictionary of series.

As mentioned in the last lesson, if two series objects have different indexes, they wouldn’t be joined by an index, like in example two below.

Get hands-on with 1200+ tech skills courses.