Skip to content

Instantly share code, notes, and snippets.

View wamsiv's full-sized avatar
🎯
Focusing

Wamsi Viswanath wamsiv

🎯
Focusing
View GitHub Profile
#include <iostream>
#include <cstdio>
#include <arrow/api.h>
#include <arrow/io/memory.h>
inline constexpr auto arrow_throw_not_ok = [](auto status) {
if (!status.ok())
{
throw std::runtime_error(status.ToString());
#include <iostream>
#include <cstdio>
#include <arrow/api.h>
#include <arrow/ipc/api.h>
#include <arrow/io/memory.h>
inline constexpr auto arrow_throw_not_ok = [](auto status) {
if (!status.ok())
{
@wamsiv
wamsiv / OptVecAmalgamation.cpp
Created October 18, 2019 00:27
OptionalVectorAmalgamation
#include <optional>
#include <type_traits>
#include <vector>
template <typename T>
struct TypeMapping {
using PrimitiveType = std::conditional_t<std::is_fundamental_v<T>, T, void>;
};
// ArrowTypeWrappers

Keybase proof

I hereby claim:

  • I am wamsiv on github.
  • I am wamsiv (https://keybase.io/wamsiv) on keybase.
  • I have a public key ASAtF_tzXOhFf2ivBn3hGfn3J9XFDV2X-hYPsMZHHLKcggo

To claim this, I am signing this object:

@wamsiv
wamsiv / gist:eb0e9df31311c5f0c273243291526829
Created June 20, 2019 15:22 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import pandas as pd
import dask
import dask.dataframe as dd
import dask.array as da
from dask.delayed import delayed
from numba import cuda
from pygdf.dataframe import DataFrame
from pygdf.series import Series