This file contains 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 pandas as pd | |
import argparse | |
def excel_to_csv(excel_file, output_csv): | |
# Load the Excel file | |
xls = pd.ExcelFile(excel_file) | |
# Read all sheets into a list of DataFrames | |
df_list = [xls.parse(sheet_name) for sheet_name in xls.sheet_names] | |
This file contains 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
library(readr) | |
library(dplyr) | |
library(tidyr) | |
library(caTools) | |
options(scipen = 999999) | |
df <- read_csv("~/Downloads/owid-covid-data.csv") | |
countries_to_use <- c( | |
"Austria", |