Ask Your Question
-1

how to import excel data to PSS/E using python

asked 2025-07-23 04:33:34 -0500

Amer gravatar image

how to import excel data to PSS/E using python

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2025-07-27 01:43:02 -0500

KLRE gravatar image

The first step is reading the Excel sheet. If you have Pandas package installed within your PSSE Python environment, you can use:

pandas.read_excel(...)

If not, and you have stored the data as a csv-file, you can use:

with open('filename.csv', 'r') as f:
    data = f.read()
    print(data)   # Prints the data to see the format that is read, but should not be part of final code

Then you would have to parse each line and create a data structure to keep track of the different parameters.

To get the data from Python into PSS/E, it depends on what type of data you want to update PSSE with. Load flow (buses, branches, etc), dynamics, or other type of data. Please provide more context.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2025-07-23 04:33:34 -0500

Seen: 184 times

Last updated: Jul 27