Skip to content

Instantly share code, notes, and snippets.

View jorisvandenbossche's full-sized avatar

Joris Van den Bossche jorisvandenbossche

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
import pyarrow as pa
class InnerType(pa.ExtensionType):
def __init__(self):
pa.ExtensionType.__init__(self, pa.int64(), 'test.inner_type')
def __arrow_ext_serialize__(self):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorisvandenbossche
jorisvandenbossche / sql.py
Last active April 9, 2022 00:55
Patched version of pandas.io.sql to support PostgreSQL
"""
Patched version to support PostgreSQL
(original version: https://github.com/pydata/pandas/blob/v0.13.1/pandas/io/sql.py)
Adapted functions are:
- added _write_postgresql
- updated table_exist
- updated get_sqltype
- updated get_schema
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jorisvandenbossche
jorisvandenbossche / geopandas-datashader.ipynb
Created June 8, 2021 11:57
Test GeoPandas with datashader visualization using PyGEOS for conversion
Sorry, this is too big to display.