Skip to content

Instantly share code, notes, and snippets.

@simecek
simecek / progress_bar.py
Created July 12, 2021 21:00
Progress bar for Berlin Marathon tweets
# Print iterations progress - adapted from https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console
def printProgressBar (days, total=100, prefix = '', suffix = 'dní', decimals = 1, length = 20, fill = '█', printEnd = "\r"):
"""
Call in a loop to create terminal progress bar
@params:
days - Required : iterations remaining (Int)
total - Optional : total iterations (Int)
prefix - Optional : prefix string (Str)
suffix - Optional : suffix string (Str)
decimals - Optional : positive number of decimals in percent complete (Int)
@simecek
simecek / df_shrink_example.ipynb
Created April 17, 2021 14:04
df_shrink_example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / rmagic_example.ipynb
Last active January 16, 2021 13:29
How to add R code to your (IPython) Jupyter Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / reprlibdemo.ipynb
Created November 4, 2018 22:13
ReprlibDemo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / tqdm_nested_loops.ipynb
Created August 18, 2020 14:49
Tqdm_nested_loops.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / untitled1.ipynb
Last active June 11, 2020 22:58
Pandas_progress_apply.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / osmnx-example.ipynb
Last active May 25, 2020 00:17
Osmnx Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / celuloid_demo.ipynb
Created May 15, 2020 19:42
Celuloid_Demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / folium_demo.ipynb
Created May 13, 2020 00:18
Folium_Demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@simecek
simecek / datetimeindex.ipynb
Created April 30, 2020 21:39
DateTimeIndex.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.