Skip to content

Instantly share code, notes, and snippets.

View cidetraq's full-sized avatar

Nicholas Randall cidetraq

View GitHub Profile
@jhonasn
jhonasn / convert-keep-notes-to-md.py
Last active January 5, 2024 08:22
A script to convert google keep notes to a bunch markdown files aiming mainly to nextcloud notes
#!/usr/bin/env python3
# from pdb import set_trace as bkp
from sys import argv, exit
from os import listdir, path, mkdir, utime
from json import loads as to_dict
from datetime import datetime as date
if '-h' in argv or '--help' in argv:
print('''
@TariqAHassan
TariqAHassan / PandasConcatWorkaround.adoc
Last active November 6, 2023 22:57
Fast Alternative to pd.concat() for row-wise concatenation

Pandas DataFrames are fantastic. However, concatenating them using standard approaches, such as pandas.concat(), can be very slow with large dataframes. This is a work around for that problem.

Note: this approach assumes that: (a) the goal is a row-wise concatenation (i.e., axis=0) and (b) all dataframes share the same column names.

If these assumptions are not met, this approach could still work…​but it will likely need to be modified.