Skip to content

Instantly share code, notes, and snippets.

View AhmadMoussa's full-sized avatar
🔮
Hello, is this Turing?

Ahmad Moussa AhmadMoussa

🔮
Hello, is this Turing?
View GitHub Profile
I am attesting that this GitHub handle AhmadMoussa is linked to the Tezos account tz1hXx6tvTV3kzxpBR6E4hDYcxdgcRGHUTFj for tzprofiles
sig:edsigtfS27ix8oe7qtCWtw7X3yPUfFFbcVn9eYXZoaxfv4aMfY6wh1BQaeWVZLsm5UqetiZVhKyJdeQ4x1CAn4XLbfW5jsxty4f
import pandas as pd
file_path = 'path_to_your.csv'
if(file_path[-4:] == '.csv'):
df = pd.read_csv(file_path, sep=';')
df.to_excel (file_path[:-4] + '.xlsx', index = None, header=True)
file_path = file_path[:-4] + '.xlsx'
sheet = pd.read_excel(file_path, sheet_name='Sheet1')