Series() is a function present in the Pandas library that creates a one-dimensional array and can hold any type of objects or data in it. In this article, let us learn the syntax, create and display one-dimensional array-like object containing an array of data using Pandas library.
Syntax : pandas.Series(parameters)
- data : Contains data stored in Series.
- index : Values must be hashable and have the same length as data.
- dtype : Data type for the output Series.
- name : The name to give to the Series.
- copy : Copy input data.
Returns : An object of class Series
Example 1 : Creating Series from a list
Example 2 :Creating a Series from a NumPy array.
Example 3: Creating a Series from a dictionary.
Example 4 :Creating a Series from list of lists.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.
- Create a Pandas TimeSeries to display all the Sundays of given year
- Change Object Display Name using __str__ function - Django Models | Python
- Display all the Sundays of given year using Pandas in Python
- Display the Pandas DataFrame in table style and border around the table and not around the rows
- How to display the days of the week for a particular year using Pandas?
- Python | Create a stopwatch using clock object in kivy using .kv file
- How to widen output display to see more columns in Pandas dataframe?
- Display the Pandas DataFrame in Heatmap style
- Display the Pandas DataFrame in table style
- How to display most frequent value in a Pandas series?
- How to display bar charts in Pandas dataframe on specified columns?
- Python | Create a stopwatch Using Clock Object in kivy
- Object Oriented Programming in Python | Set 1 (Class, Object and Members)
- Object Oriented Programming in Python | Set 2 (Data Hiding and Object Printing)
- Display date and time in videos using OpenCV - Python
- How to Create a Pivot Table in Python using Pandas?
- How to Create a Pivot table with multiple indexes from an excel sheet using Pandas in Python?
- Using Timedelta and Period to create DateTime based indexes in Pandas
- Snowfall display using Pygame in Python
- Display Snowfall using arcade library in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.