Skip to content

error after data import #5

@toubee256

Description

@toubee256

Hi there

I tried to run your script, which I think is awesome by the way.
I am getting an Error on the first Line under
## Calculate Power and Energy usable by Battery
Error on:
df = pd.DataFrame.from_records(all_data, columns = ['timestamp', 'power'])
The error is:
TypeError: Passing a DataFrame to DataFrame.from_records is not supported. Use set_index and/or drop to modify the DataFrame instead.
I get the error even when running with the provided sample data and many permutations of it (no index column, no header row, ...)

Can you give me any hint what might I might be doing wrong?
I suspected that the timestamp is of the wrong format, but I could not figure out, what it should be.

I installed Jupyter according to chri2's tutorial on a ubuntu 24.04-container in proxmox

Thanks and kind regards, Toubee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions