Giter Site home page Giter Site logo

allendowney / elementsofdatascience Goto Github PK

View Code? Open in Web Editor NEW
339.0 23.0 121.0 122.69 MB

An introduction to data science in Python, for people with no programming experience.

Home Page: https://allendowney.github.io/ElementsOfDataScience/

License: MIT License

Jupyter Notebook 99.66% Python 0.29% Makefile 0.05%

elementsofdatascience's Issues

notebook 13 down

The link to run notebook 13 on collab and the one to download it both return 404 errors. I also noticed there are two notebook 11s in the repository, one for inference and the other for resampling. Perhaps the inference notebook got mislabeled?

issue

I have a general issue.

Harrumph

>_<

04_loops : UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 619: character maps to <undefined>

The encoding on my windows computer is 'cp1252'.
When I execute the following cell of the 04_loops notebook:
fp = open('2600-0.txt') count = 0 for line in fp: count += 1

I get the following error:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 619: character maps to <undefined>

I executed the notebook on local and not on colab
The issue is solved with encoding='utf8'

NameError: name 'string' is not defined in 05_dictionaries.html

The html version of you book contains an exception where an output is expected:

https://allendowney.github.io/ElementsOfDataScience/05_dictionaries.html#punctuation

After the paragraph "Here’s what happens when we try to remove the punctuation"

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-28f1a7003571> in <module>
      1 for word in line.split():
----> 2     word = word.strip(string.punctuation)
      3     print(word)

NameError: name 'string' is not defined

typo

02_times.ipynb text after cell 13:

You can also get[s] the name of the month and the day of the week.

04_loops : last line of War and Peace changed

In 04_loops, the last line of War And Peace is :
*** END OF THE PROJECT GUTENBERG EBOOK WAR AND PEACE ***

and no longer :
End of the Project Gutenberg EBook of War and Peace, by Leo Tolstoy

interval error

Hello Allen,

I just found a minor typo in the book.
From the topic of resampling and bootstrapping:
You express "np.percentile(t2, [5, 95])" as 90% confidence interval which is in fact 95% confidence interval.

ex)
np.percentile(t2, [5, 95])

ex)
def summarize(t, digits=2):
table = pd.DataFrame(columns=['Estimate', 'SE', 'CI90'])
est = np.mean(t).round(digits)
SE = np.std(t).round(digits)
CI90 = np.percentile(t, [5, 95]).round(digits)
table.loc[''] = est, SE, CI90
return table

Your book is amazing. Thank you for sharing!

Sincerely,
Dong Gil Kim

01_variables: Small typo

Hi Allen,

In 01_variables, I noticed a grammar typo in the first sentence of the first section. There's an extra "s" which shouldn't be there:

"Data science is the use of data to answers questions and guide decision making."

I'm a big fan of Thinking Python and want to take this opportunity to thank you for writing all your wonderful books and releasing them under Creative Commons :)

JF Koh from Singapore

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.