Skip to content
1 hidden cell
Introduction to Importing Data in Python
Introduction to Importing Data in Python
Run the hidden code cell below to import the data used in this course.
1 hidden cell
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
Add your notes here
# Add your code snippets hereExplore Datasets
Try importing the remaining files to explore the data and practice your skills!
datasets/disarea.dtadatasets/ja_data2.matdatasets/L-L1_LOSC_4_V1-1126259446-32.hdf5datasets/mnist_kaggle_some_rows.csvdatasets/sales.sas7bdat
years = range(2011, 2021, 1)
durations = [103, 101, 99, 100, 100, 95, 95, 96, 93, 90]
movie_dict = dict(zip(years, durations))
# Print the dictionary
movie_dictimport pandas as pd# Create a DataFrame from the dictionary
durations_df = pd.DataFrame(movie_dict)
# Print the DataFrame
durations_df