Python Series Vs DataFrame Top Examples

In this post, I am going to tell you on top differences between Series data and DataFrame in Python. Here is Python ‘pdb’ Tutorial to Debug at Command Line.


1). Python Series Example

The data is in the form of Key, Value pair. You can ask a question about what is Key. So, I am giving here an example of Series data.

Sample Series Data

ValueIndex
100
111
162
Python Series Example

Key is equal to index in Key value data.

Python Series Example

2). Python dataFrame Example

The dataFrame is an ordered collection of data. You can create data in multiple dimensions.

The Data in the tabular form. It consists of Data, Rows, Columns. Example DataFrame from geeksforgeeks.com

DataFrame example

In Python, with ‘pandas’ you can create DataFrame.

List of Data Sources

In support of the growing demand for data, a huge number of data sources are now available on the Internet. These data sources freely provide information to anyone in need, and they are called open data.

  1. DataHub (http://datahub.io/dataset)
  2. World Health Organization (http://www.who.int/research/en/)
  3. Data.gov (http://data.gov)
  4. European Union Open Data Portal (http://open-data.europa.eu/en/data/)
  5. Amazon Web Service public datasets (http://aws.amazon.com/datasets)
  6. Facebook Graph (http://developers.facebook.com/docs/graph-api)
  7. Healthdata.gov (http://www.healthdata.gov)
  8. Google Trends (http://www.google.com/trends/explore)
  9. Google Finance (https://www.google.com/finance)
  10. Google Books Ngrams (http://storage.googleapis.com/books/ngrams/books/datasetsv2.html)

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.