Skip to content

Instantly share code, notes, and snippets.

View tbotalla's full-sized avatar
👷‍♂️

Tomas Enrique Botalla tbotalla

👷‍♂️
  • Argentina
View GitHub Profile
@tbotalla
tbotalla / Pandas Python Cheatsheet
Last active September 23, 2018 23:17
Gist de Referencia con lineas utiles de código al usar Pandas para analisis exploratorio de datos
# Convertir columna a string
total_rows['ColumnID'] = total_rows['ColumnID'].astype(str)
# Eliminar filas cuyo valor para la columna A son nan
df.dropna(subset=['A'])
# Distribucion de valores para una cierta columna
events['city'].value_counts()
# Chequear si una columna tiene algun valor null
https://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive
The Command-Line Way
In case you can't get your device formatted from the GUI, try this way.
Open the Terminal (Ctrl + Alt + T)
List your block storage devices by issuing the command lsblk
Then identify your pen drive by it's SIZE. In my case its /dev/sdb