In [1]:
import pandas as pd

In [2]:
import numpy as np

In [3]:
import matplotlib.pyplot as plt

In [4]:
marina_25_34 = open('marina_25_34.csv','r')
l_marina_25_34 = marina_25_34.readlines()
marina_25_34.close()

In [5]:
for i in xrange(len(l_marina_25_34)):
    l_marina_25_34[i] = l_marina_25_34[i].rstrip('\n').split(';')

In [6]:
data = []
for j in l_marina_25_34:
    data += [[float(j[1]),float(j[3])]]

In [7]:
df = pd.DataFrame(data=data,columns=['% Total', '% 25 a 34 anos'])

In [8]:
df.plot(kind="scatter", x="% 25 a 34 anos", y="% Total")


Out[8]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f4dac06ce10>

In [9]:
plt.show()


/usr/lib/python2.7/dist-packages/matplotlib/collections.py:571: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  if self._edgecolors == str('face'):

In [ ]: