Demo entry 6776312

test

   

Submitted by anonymous on Dec 01, 2018 at 15:53
Language: Python. Code size: 1.0 kB.

# Importation des données des tables REGION, PAYS, ECONOMIE avec 'PANDAS'

region_df = pd.read_csv('./Downloads/region.csv',
                        delimiter = ',',                                    # Les colonnes sont délimitées par des virgulles ','
                        decimal = '.'
                       )

pays_df = pd.read_csv('./Downloads/pays.csv',
                      delimiter = ',',
                      decimal = '.',
                      header = None,                                        # Declarer que la table ne comporte pas d'entête
                      names = ['id_country', 'id_region', 'country_code',
                               'country_name', 'organisation']              # Nomer les colonnes
                     )

economie_df = pd.read_csv('./Downloads/economie.csv',
                          delimiter = ',',
                          decimal = '.',
                          #parse_dates = ['year']                             # Interprete en date
                         )

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).