Skip to content

Instantly share code, notes, and snippets.

View karlafej's full-sized avatar

Karla Fejfarová karlafej

  • Imper s.r.o.
  • Prague
View GitHub Profile
@karlafej
karlafej / str-repr.ipynb
Last active May 2, 2019 10:25
__str__ vs. __repr__
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karlafej
karlafej / plotnine_drawing.ipynb
Created February 1, 2019 15:03
creativity with python and math
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karlafej
karlafej / attrgetter_sort.ipynb
Created September 20, 2018 17:34
Sort objects of the same class that don’t natively support comparison operations using operator.attrgetter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karlafej
karlafej / gspread.ipynb
Created May 14, 2018 13:59
Import google sheet into pandas dataframe
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@karlafej
karlafej / gist:7cd0f4cfd262847208f9b2bb56acde73
Last active May 30, 2017 10:21
python_tip: csv.DictReader
import csv
with open('names.csv') as csvfile:
reader = csv.DictReader(csvfile)
for row in reader:
print(row['first_name'], row['last_name'])
# If the column names suck you can provide a list yourself
# via the optional fieldnames in the DictReader constructor
@karlafej
karlafej / maj_wordcloud.ipynb
Last active May 1, 2017 19:12
Máj word cloud
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.