I have a problem with plotting my load profiles for my Bachelor thesis.
I got an csv file, which is seperated by tabs, like this:
PV-Energie (AC) abzgl. Standby-Verbrauch, -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,05512 0,1418 72,219 87,723 89,751 41,49 33,484 27,917 3,5819 -0,05512 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747 -0,01747
Is there a way to choose “tab” as seperator?
Here is my code:
`from oemof import solph
import pandas as pd
import matplotlib.pyplot as plt
from oemof.tools import economics
import numpy as np
from oemof.tools import logger
logger.define_logging()
logger.info('Programm gestartet')
filename = 'PV.csv'
df = pd.read_csv(filename)
logger.info('Datei wurde eingelesen')
ax = df.plot.area(subplots=True, figsize=(10,7))
ax[0].set_ylabel("Leistung in kW")
ax[0].set_xlabel("Zeit in h")
plt.title('power demand')
plt.tight_layout()
plt.show()
logger.info(‘Programm beendet’)`
I would like to get an solution for my problem.
Andy Fröhlich is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.