00:00Hello everyone, in this video we are going to talk about series in pandas.
00:08So, series is basically one dimensional data frame and column data.
00:13So, that is how we create and practical.
00:17So, first, we use pandas to create a series in pandas.
00:25So, pandas library will import.
00:27Import pandas, that is called pd.
00:30Aliasing name.
00:32Next, we create a series.
00:34The series is called column data.
00:37So, when the column data is created, there are different ways.
00:41You can use a list.
00:44You can use a tuple.
00:45In short form, how do we say?
00:47Hitables.
00:49This is the first way.
00:51Second, we create arrays.
00:55That is the data.
00:58Third way, we use dictionary.
01:01How do we create a series?
01:04So, first, we create a list.
01:07We create a series.
01:09Then, first pandas library will import.
01:12pd.
01:13That is the series data structure.
01:15We import.
01:16So, pd.series.
01:17What is the first argument?
01:19Values.
01:20Column is called values.
01:21First, we create a list.
01:23First, we create a list.
01:24So, this is the list.
01:251, 2, 3, 4, 5.
01:27Now, since the column values is called values.
01:32So, once we create a list, we create a list.
01:34Second argument that we create a list.
01:39Third, when we create data to create a list.
01:43We create the list of data.
01:44So, once the list is created, we create a list.
01:461.0, 2.0 is the flow data reps change
01:50what we say is this part is index
01:56index is a row value
02:00index is one argument
02:04default index is 0
02:06so our series create
02:08first column values
02:10and what data type
02:12is the column name
02:14this is the option
02:16this is the most
02:18index is the default
02:20default
02:220
02:24this is the first list
02:26we create a series
02:28next
02:30we pass the index
02:32we have a list
02:34or a tuple format
02:36first
02:381,2,3,4,5
02:40next
02:42index
02:44this is the second argument
02:46a,b,c,d,e
02:48this is the column name
02:50change
02:52this is the list
02:54so
03:06select
03:08同
03:10Now, pd.seriesof
03:12Now, if you pass what you want to pass,
03:15one list is passed
03:16Now, we create an array
03:18So, np.arrayof
03:20Here, range function use
03:2250,60
03:23Then, array of 50
03:2551
03:2652
03:27till
03:2859
03:29extract
03:30This is array
03:32Now, we pass
03:34This is column values
03:36This is index
03:38Range
03:40Range
03:41tool
03:4212
03:43Consider
03:44Column
03:46and data type
03:48Change
03:49So, this is the second way
03:53Arrays
03:54Use
03:55Create
03:56Next
03:57One
03:58Dictionary
03:59Paste
04:00How to create series
04:01First
04:02Dictionary
04:03Create
04:04Dictionary
04:05Is
04:06Name
04:07Age
04:08Department
04:09This is the third way
04:10This is the third way
04:11Now, age
04:1222
04:13Department
04:14CC
04:15Now, pd.seriesof
04:16Dictionary1
04:17That is the third way
04:18That is the third way
04:19If you want to write
04:20argument
04:21I can write
04:22In the third way
04:23Dictionary
04:24Add
04:25Key
04:26Value
04:27Index
04:28Then
04:29Dictionary
04:30Values
04:31Show
04:32Column
04:33Values
04:34Show
04:35The third way
04:36The third way
04:37List
04:38Based
04:39Array
04:40Based
04:41Data
04:42Index
04:43Default
04:440
04:451
04:462
04:473
04:484
04:49Index
04:50Parameter
04:51That is the third way
04:52To create
04:53Key
04:54Values
04:55The
04:56Key
04:57Index
04:58Change
04:59Values
05:00Provide
05:01That is
05:02Name
05:03Name
05:04Index
05:05Next
05:06Name
05:07Column
05:08Value
05:09Then
05:10Age
05:11Index
05:12Value
05:1322
05:14Department
05:15EC
05:16Fit
05:17This
05:18Series
05:19Create
05:20Data
05:21Add
05:22Dictionary
05:231
05:24Key
05:25Value
05:26That is
05:27Series
05:28S1
05:29Create
05:30New
05:31Element
05:32Passed
05:33Out
05:342023
05:35That is
05:36Passed
05:372023
05:38That is
05:39S1
05:40Of
05:41Series
05:421
05:43Passed
05:44Out
05:452023
05:46That is
05:474th
05:48Argument
05:49Create
05:50Now
05:51Create
05:52Series
05:53If
05:54Student
05:55Age
05:56Extract
05:57Normal
05:58Dictionary
05:59Name
06:001
06:01Key
06:02Extract
06:03That is
06:04S1
06:05S1
06:06Index
06:07Extract
06:08So
06:09S1
06:10Age
06:11Extract
06:1222
06:13Now
06:14Series
06:15Create
06:16Based
06:17On
06:18Methods
06:20List
06:21Based
06:22Tuples
06:23Provide
06:24Tuples
06:25Use
06:26Change
06:27Then
06:28Arrays
06:29Use
06:30Create
06:31Then
06:32Followed by
06:33Dictionary
06:34Create
06:35Pandas
06:38Series
06:39Till
06:40Next
06:41Video
06:42Thank you
06:43Thank you
06:45Do
06:47To
06:48Know
06:49The
06:51Connect
06:52Nico
Comments