Ошибка при попытке воспроизвести пузырьковую диаграмму Gapminder - PullRequest
0 голосов
/ 22 сентября 2018

Я только начинающий с Python, я пытался воспроизвести эту анимированную пузырьковую диаграмму:

https://www.kaggle.com/aashita/guide-to-animated-bubble-charts-using-plotly/notebook

    enter code here 
# import our packages 
import pandas as pd 

# Define the dataset and the columns
dataset = 'gapminderDataFiveYear.csv'
x_column = 'gdpPercap'
y_column = 'lifeExp'
bubble_column = 'country'
time_column = 'year'

# Get the years in the dataset
years = dataset[time_column].unique()

И я получаю эту ошибку:

TypeError: строковые индексы должны быть целыми числами

... любой совет?

...