wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.27k stars 15.19k forks source link

Chaper 2 - Running the IPython Shell #161

Closed tkanngiesser closed 1 year ago

tkanngiesser commented 2 years ago

The first two lines are Python code statements; the second statement creates a variable named data that refers to a newly created Python dictionary. The last line prints the value of data in the console.

CORRECTION: data is a list not dictionary

In [5]: import numpy as np

In [6]: data = [np.random.standard_normal() for i in range(7)]

In [7]: data

renga17 commented 2 years ago

Hi Please unsubscribe me from your mailing list.

Thanks Renga

On Fri, Aug 26, 2022, 8:52 PM Tino Kanngiesser @.***> wrote:

The first two lines are Python code statements; the second statement creates a variable named data that refers to a newly created Python dictionary. The last line prints the value of data in the console.

CORRECTION: data is a list not dictionary

In [5]: import numpy as np

In [6]: data = [np.random.standard_normal() for i in range(7)]

In [7]: data

— Reply to this email directly, view it on GitHub https://github.com/wesm/pydata-book/issues/161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIMJZ5UJRZWVCHYDPUK5D3V3DOLVANCNFSM57XDQIDA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

wesm commented 1 year ago

This will be fixed shortly on https://wesmckinney.com/book and in the next release of the print 3rd edition