Skip to content

Instantly share code, notes, and snippets.

View sarthakpati's full-sized avatar
💡
Researching privacy-first approaches to ML

Sarthak Pati sarthakpati

💡
Researching privacy-first approaches to ML
View GitHub Profile
@sarthakpati
sarthakpati / json_to_csv_with_plots.py
Last active August 22, 2024 13:48
Convert dictionary based JSON data structures to CSV files
import os, json
import matplotlib.pyplot as plt
import pandas as pd
if __name__ == "__main__":
base_dir = os.path.dirname(os.path.abspath(__file__))
all_dirs = os.listdir(base_dir)
@sarthakpati
sarthakpati / get_debug_info.py
Created November 19, 2024 14:51
A small script to generate system debugging information
import platform
from pip import main
from deprecated import deprecated
print(f"Platform: {platform.platform()}")
print(f"Machine: {platform.machine()}")
print(f"Processor: {platform.processor()}")
print(f"Architecture: {(' ').join(list(platform.architecture()))}")
print("Python environment:")
print(f" Version: {platform.python_version()}")