freeCodeCamp/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-c.../reading-data-csv-and-txt.md

981 B

id challengeType videoId
5e9a093a74c4063ca6f7c162 11 ViGEv0zOzUk

--description--

More resources:

- Reading CSVs Notebook

- Reading SQL

- Reading HTML

- Reading Excel files

--question--

--text--

How would you import the CSV file data.csv and store it in a DataFrame using the Pandas module?

--answers--

import pandas as pd
df = pd.csv("data.csv")

import pandas as pd
df = pd.read_csv("data.csv")

import pandas as pd
pd.read_csv("data.csv")

import pandas as pd
df = pd.csv_reader("data.csv")

--video-solution--

2

--hints--

--solutions--