skip to Main Content

Html – extract value from span

I want to extract a snow depth value from a weather site to a dataframe. (https://www.yr.no/nb/sn%C3%B8dybder/NO-46/Norge/Vestland) Specifically the snow depth for the Jordalen - NĂ¥sen area. Screen shot The closest I've gotten is printing all the values using this code:…

VIEW QUESTION

How do I make my JSON file readable in my pandas dataframe?

Here is my code: with open(r'unique_columns.json', 'r') as f: config = json.load(f) unique_col_comb = config['Unique_Column_Combination']['TABLE_NAME'] df = pd.read_csv(f's3://path/to/file.csv', sep='|') df_unique = df.set_index([unique_col_comb]).index.is_unique print(df_unique) My JSON looks like this: { "Unique_Column_Combination": { "TABLE_NAME": "COL1, COL2, COL3" } } I get the…

VIEW QUESTION
Back To Top
Search