Files

60 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5e9a093a74c4063ca6f7c162
title: 'Зчитування даних: CSV та TXT'
challengeType: 11
videoId: ViGEv0zOzUk
bilibiliIds:
aid: 505575354
bvid: BV1tg411c7GH
cid: 409020451
dashedName: reading-data-csv-and-txt
---
# --description--
*Замість використаного у відеоматеріалі notebooks.ai можна користуватись блокнотом Google Colab.*
Додаткові ресурси:
- [Блокноти на GitHub](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [Як відкрити блокноти з GitHub використовуючи Google Colab.](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Як, використовуючи модуль Pandas, можна імпортувати і зберегти у таблиці даних CSV файл `data.csv`?
## --answers--
```python
import pandas as pd
df = pd.csv("data.csv")
```
---
```python
import pandas as pd
df = pd.read_csv("data.csv")
```
---
```python
import pandas as pd
pd.read_csv("data.csv")
```
---
```python
import pandas as pd
df = pd.csv_reader("data.csv")
```
## --video-solution--
2