Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Operations with the File | Explore Dataset
Introduction to Python for Data Analysis
course content

Зміст курсу

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

bookOperations with the File

We are ready to continue!

Now we are going to learn how to:

  • Import libraries
  • Read files with the pandas
  • Create DataFrames.

Import libraries

Python is an ocean of libraries that serve various purposes, and as a Python developer, we must have sound knowledge of the best ones.

Books in every library are functions that can be used to perform different operations. Now we are going to work with the pandas library.

To import the library, use the following code:

pd alias is used for the ease of the work usually.

Creating the DF by reading the csv-file

There is a special function in the pandas - .read_csv(). The function helps to meet (read) the file (csv, xlsx, etc.). Pandas is the library that works with the DataFrames. DF is a structure made of your file. Sounds a little bit difficult? Don't worry! It only seems to be like that. To create the DataFrame from the csv-file, use the following code:

Завдання

Let's try to create the DataFrame by opening the csv-file.

  1. Import the pandas with the pd alias.
  2. Create the df variable and put the read csv-file into this variable.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
toggle bottom row

bookOperations with the File

We are ready to continue!

Now we are going to learn how to:

  • Import libraries
  • Read files with the pandas
  • Create DataFrames.

Import libraries

Python is an ocean of libraries that serve various purposes, and as a Python developer, we must have sound knowledge of the best ones.

Books in every library are functions that can be used to perform different operations. Now we are going to work with the pandas library.

To import the library, use the following code:

pd alias is used for the ease of the work usually.

Creating the DF by reading the csv-file

There is a special function in the pandas - .read_csv(). The function helps to meet (read) the file (csv, xlsx, etc.). Pandas is the library that works with the DataFrames. DF is a structure made of your file. Sounds a little bit difficult? Don't worry! It only seems to be like that. To create the DataFrame from the csv-file, use the following code:

Завдання

Let's try to create the DataFrame by opening the csv-file.

  1. Import the pandas with the pd alias.
  2. Create the df variable and put the read csv-file into this variable.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 2
toggle bottom row

bookOperations with the File

We are ready to continue!

Now we are going to learn how to:

  • Import libraries
  • Read files with the pandas
  • Create DataFrames.

Import libraries

Python is an ocean of libraries that serve various purposes, and as a Python developer, we must have sound knowledge of the best ones.

Books in every library are functions that can be used to perform different operations. Now we are going to work with the pandas library.

To import the library, use the following code:

pd alias is used for the ease of the work usually.

Creating the DF by reading the csv-file

There is a special function in the pandas - .read_csv(). The function helps to meet (read) the file (csv, xlsx, etc.). Pandas is the library that works with the DataFrames. DF is a structure made of your file. Sounds a little bit difficult? Don't worry! It only seems to be like that. To create the DataFrame from the csv-file, use the following code:

Завдання

Let's try to create the DataFrame by opening the csv-file.

  1. Import the pandas with the pd alias.
  2. Create the df variable and put the read csv-file into this variable.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

We are ready to continue!

Now we are going to learn how to:

  • Import libraries
  • Read files with the pandas
  • Create DataFrames.

Import libraries

Python is an ocean of libraries that serve various purposes, and as a Python developer, we must have sound knowledge of the best ones.

Books in every library are functions that can be used to perform different operations. Now we are going to work with the pandas library.

To import the library, use the following code:

pd alias is used for the ease of the work usually.

Creating the DF by reading the csv-file

There is a special function in the pandas - .read_csv(). The function helps to meet (read) the file (csv, xlsx, etc.). Pandas is the library that works with the DataFrames. DF is a structure made of your file. Sounds a little bit difficult? Don't worry! It only seems to be like that. To create the DataFrame from the csv-file, use the following code:

Завдання

Let's try to create the DataFrame by opening the csv-file.

  1. Import the pandas with the pd alias.
  2. Create the df variable and put the read csv-file into this variable.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 3. Розділ 2
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
some-alt