In [1]:
import pandas as pd

In [6]:
indicators = ['Production CO2 Emissions Annual Change', 'Production CO2 Emissions Absolute Value',
             'Consumption CO2 Emissions Annual Change', 'Consumption CO2 Emissions Absolute Value',
             'GDP', 'GDP percent change']
data = pd.read_csv("wri-ghg/final-data/All Data Together.csv",index_col=[0])
data = data[data["Indicator"] in indicators]
data.to_csv('wri-ghg/final-data/All Data Together Concise.csv')


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-6-3efa6aa411d2> in <module>()
      3              'GDP', 'GDP percent change']
      4 data = pd.read_csv("wri-ghg/final-data/All Data Together.csv",index_col=[0])
----> 5 data = data[data["Indicator"] in indicators]
      6 data.to_csv('wri-ghg/final-data/All Data Together Concise.csv')

~/.pyenv/versions/3.6.0/lib/python3.6/site-packages/pandas/core/generic.py in __nonzero__(self)
    953         raise ValueError("The truth value of a {0} is ambiguous. "
    954                          "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
--> 955                          .format(self.__class__.__name__))
    956 
    957     __bool__ = __nonzero__

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().