Skip to content

Instantly share code, notes, and snippets.

View romicofre's full-sized avatar
🐇

Romi romicofre

🐇
View GitHub Profile
#!/usr/bin/env bash
# #
# # Install main dependencies on CentOS:
# # Python 3.4.5, CMake 3.10.0, OpenCV 3.3.1
# # Author Andrii Lundiak (landike@gmail.com)
# #
# https://github.com/ageitgey/face_recognition/issues/191
# https://github.com/opencv/opencv/issues/8471
@Fhernd
Fhernd / guardar-csv.py
Created January 29, 2018 11:51
Guarda datos de un DataFrame en formato CSV en Python.
import pandas as pd
# Definición diccionario:
diccionario = {'pares': [0, 2, 4, 6], 'impares': [1, 3, 5, 7]}
# Creación DataFrame:
df_numeros = pd.DataFrame(diccionario)
# Guarda datos en CSV:
df_numeros.to_csv('numeros.csv', header=False, index=False)