Skip to content

Instantly share code, notes, and snippets.

View plant99's full-sized avatar
🦆
everything is absurd, but plants

Shivashis Padhi plant99

🦆
everything is absurd, but plants
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.

The easiest way to get an ImportError in Python is to install Python and open a console, type the following.

from sys import ham
---------------------------------------------------------------------------
We can't make this file beautiful and searchable because it's too large.
hex_id,total_session_count
880982141dfffff,1
882f5aa887fffff,1
8810ad7559fffff,11
8830e02eddfffff,13
8812d03351fffff,2
88194e6a65fffff,1
88101608adfffff,1
8819599113fffff,1
8810ad7559fffff,9
We can't make this file beautiful and searchable because it's too large.
_etl_created_at,_etl_updated_at,aggregate_timestamp,hex_id,order_count,sum_cost,mean_cost,min_value_cost,max_value_cost,percentile_25th_cost,percentile_50th_cost,percentile_75th_cost,percentile_99th_cost,standard_deviation_cost
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96501fffff,1,311.0,311.0,311.0,311.0,311.0,311.0,311.0,311.0,0.0
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96503fffff,1,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,1806.0,0.0
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96507fffff,1,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,2851.0,0.0
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96513fffff,1,655.0,655.0,655.0,655.0,655.0,655.0,655.0,655.0,0.0
2020-03-12 12:22:1584015765,2020-03-12 12:22:1584015765,2020-03-10 00:00:1583798400,883ca96515fffff,1,755.0,755.0,755.0,755.0,755.0,755.0,755.0,755.0,0.0
2020-03-12
from sqlalchemy import create_engine
engine = create_engine('sqlite:///:memory:', echo=True)
# engine = create_engine("mysql://scott:tiger@hostname/dbname", encoding='latin1', echo=True)
# engine = create_engine("postgresql://scott:tiger@localhost/test")
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
from sqlalchemy import Column, Integer, String
class User(Base):
__tablename__ = 'users'
{
"cells": [
{
"cell_type": "code",
"execution_count": 158,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
<!DOCTYPE html>
<html>
<head>
<title>Add GeoJSON layer | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<script src="https://libs.cartocdn.com/carto-vl/v1.4.4/carto-vl.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js"></script>