Importarea fișierelor plate cu pandas

Introducere în importul datelor în Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Ce are nevoie un om de știința datelor

  • Structuri de date etichetate bidimensionale
  • Coloane cu tipuri diferite
  • Manipulare, segmentare, restructurare, grupare, îmbinare
  • Statistici
  • Date de tip serie temporală
Introducere în importul datelor în Python

Pandas și DataFrame

ch_1_4.009.png

Introducere în importul datelor în Python

Pandas și DataFrame

ch_1_4.010.png

Introducere în importul datelor în Python

Pandas și DataFrame

ch_1_4.012.png

  • DataFrame = echivalentul Python al data frame-ului din R
Introducere în importul datelor în Python

Pandas și DataFrame

ch_1_4.015.png

Introducere în importul datelor în Python

Manipularea DataFrame-urilor pandas

  • Analiza exploratorie a datelor
  • Prelucrarea datelor
  • Preprocesarea datelor
  • Construirea modelelor
  • Vizualizare
  • Practică standard cu pandas
Introducere în importul datelor în Python

Importare cu pandas

import pandas as pd

filename = 'winequality-red.csv' data = pd.read_csv(filename)
data.head()
   volatile acidity  citric acid  residual sugar
0              0.70         0.00             1.9
1              0.88         0.00             2.6
2              0.76         0.04             2.3
3              0.28         0.56             1.9
4              0.70         0.00             1.9
data_array = data.to_numpy()
Introducere în importul datelor în Python

Veți exersa:

  • Importarea simplă a fișierelor plate
  • Importarea fișierelor cu probleme (comentarii, valori lipsă)
Introducere în importul datelor în Python

Să exersăm!

Introducere în importul datelor în Python

Preparing Video For Download...