This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
def save_model_versioned(model, base_path="../saved_models"): | |
# Ensure the directory exists | |
os.makedirs(base_path, exist_ok=True) | |
# Determine the next version number by checking existing folders | |
existing_versions = [ | |
int(i) for i in os.listdir(base_path) if i.isdigit() | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*adding backgrund to all the big number charts*/ | |
div[data-test-viz-type=big_number_total] { | |
background: linear-gradient(#eee, #fff); | |
border-radius: 8px; | |
padding: 2px; | |
} | |
/*creating a pseudo element to add image content for big number charts only*/ | |
div[data-test-viz-type=big_number_total]::after { | |
position:absolute; | |
height: 50px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE prod | |
SET production = production * 180 * 0.001 | |
WHERE crop = 'Jute & Mesta ##'; | |
UPDATE prod | |
SET production = production * 170 *0.001 | |
WHERE crop = 'Cotton#'; | |
-- converting lakh bales to tonnes for cotton, jute and mesta | |
UPDATE prod | |
SET production = ROUND(production, 2); |