what is the difference between series and dataframes in pandas ?
Answers
Answered by
23
Answer:
Series is a type of list which can take integer values, string values, double value and more. Series can only contain single list with index, whereas dataframes can be made of more than one series or we can say that a dataframes is a collection of series that can be used to analyse the data.
Mark me as a Brainliest.
Answered by
1
Answer:
Python provides a library called pandas, it provides two data structures that shape data into a readable form that are series and dataframes
Explanation:
- A pandas series is a one-dimensional data structure that comprises of a key-value pair. It is similar to a python dictionary, except it provides more freedom to manipulate and edit the data. To initialize a series, use- pd.Series()
- A pandas dataframe is a two-dimensional data-structure that can be thought of as a spreadsheet. A dataframe can also be thought of as a combination of two or more series. To initialize a dataframe, use- pd.DataFrame:
Similar questions