Skip to content

Instantly share code, notes, and snippets.

View animeshk08's full-sized avatar
🎯
Focusing

Animesh Kumar animeshk08

🎯
Focusing
View GitHub Profile
@animeshk08
animeshk08 / create_schema.py
Created April 11, 2020 08:49
Used to fetch the indexes of ElasticSearch and create a schema.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
import pandas as pd
import argparse
from elasticsearch import Elasticsearch
def create_schema(index, file_name=None):