I hereby claim:
- I am blacksmithop on github.
- I am blacksmithop (https://keybase.io/blacksmithop) on keybase.
- I have a public key ASBuWejMzpZk8vQ4xQ36WZDOfeSjPTP4PDuNZw1yygZquQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class Map(dict): | |
| """ | |
| Example: | |
| m = Map({'first_name': 'Eduardo'}, last_name='Pool', age=24, sports=['Soccer']) | |
| """ | |
| def __init__(self, *args, **kwargs): | |
| self.update(*args,**kwargs) | |
| if kwargs: | |
| for k, v in kwargs.items(): |
| from requests import get | |
| from bs4 import BeautifulSoup | |
| class Novel: | |
| """ | |
| Represents a novel. | |
| """ | |
| def __init__( |
| <!DOCTYPE html> | |
| <html lang="en" class="h-100"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content=""> | |
| <meta name="author" content="Blacksmithop"> | |
| <meta name="generator" content="Hugo 0.88.1"> | |
| <title>Index of - Blacksmithop</title> |
| from functools import wraps | |
| from django.http import HttpResponseNotAllowed | |
| def require_http_methods(method_list): | |
| """ | |
| Decorator to make a view only accept particular request methods. Usage:: | |
| @require_http_methods(["GET", "POST"]) | |
| def my_view(request): | |
| """ |
| from os import listdir, path, remove, walk | |
| from json import dump, load | |
| from re import sub | |
| dir = "data" | |
| def createJSON(): | |
| fileName = input("> Title: ") |
| from collections import Counter | |
| import pandas as pd | |
| data = [["A", 1], ["A", 2], ["B", 5], ["B", 5], ["B", 4], ["C", 6]] | |
| df = pd.DataFrame(data, columns=["name", "id"]) | |
| id_all = df.groupby("name")["id"].agg(list) | |
| id_unique = df.groupby("name")["id"].agg(set) |