Duik in Python

Introductie tot Data Science in Python

Hillary Green-Lerman

Lead Data Scientist, Looker

Wat je gaat leren

  • Hoe je Python-code schrijft en uitvoert met DataCamp
  • Hoe je data uit een spreadsheet laadt
  • Hoe je data omzet in mooie grafieken
Introductie tot Data Science in Python

Een mysterie oplossen met data

bayes

losgeldbrief

Introductie tot Data Science in Python

De IPython-shell gebruiken

console.gif

Introductie tot Data Science in Python

De scripteditor gebruiken

script.gif

Introductie tot Data Science in Python

Wat is een module?

  • Groepeert gerelateerde tools
  • Makkelijk om een specifieke tool te vinden
  • Veelvoorkomende voorbeelden:
    • matplotlib
    • pandas
    • scikit-learn
    • scipy
    • nltk
Introductie tot Data Science in Python

Pandas en matplotlib importeren

import pandas as pd
from matplotlib import pyplot as plt
# Pandas laadt onze data
df = pd.read_csv('ransom.csv')

# Matplotlib plot en toont
plt.plot(df.letters, df.frequency)
plt.show()

eenvoudige-plot

Introductie tot Data Science in Python

Een module importeren

  • Een module importeren

    import pandas
    
  • Een module met een alias importeren

    import pandas as pd
    
Introductie tot Data Science in Python

Laten we oefenen!

Introductie tot Data Science in Python

Preparing Video For Download...