Hi guys I’m trying to make ich bar plot for sales.
I have a dropdown where i can select multiple years .
and the y axis of the bar is Sales Volume and the x axis should be Week or Month
If i select year 2019 and 2020
i want for example for year 2019 week 1 and year 2020 week 1 a separated war next to each other that i can compare both depens on how many years I choosed
My Dataframe is defined as follow:
branch, year, month, week, assignments, sales volume My Columnheaders
1 , 2020, 4 , 15 , 500 , 500.000,00
Picture:
I’m trying to create month/year and week/year column like 12.2019 and 52.2019 when im trying to combine my year and month or week column to create a new column called monthYear and weekYear thats working fine. but I want to format into datetime columns like week.year = 53.2019 or mont.year = 11.2019 but I cant find a solution…
File “C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\tools\datetimes.py”, line 423, in _convert_listlike_datetimes
result, timezones = array_strptime(
File “pandas_libs\tslibs\strptime.pyx”, line 150, in pandas._libs.tslibs.strptime.array_strptime
My current problem is that I have no date column with 01.04.2019 only year, month and week column cause im not interested in days. But to create a bar chart like this I need to combine year and month and if i want to display all weeks of the selected years I need to combine week and year but converting it into an date doesnt work…