issue with seaborn

jak nospam at please.ty
Sat Feb 20 06:13:30 EST 2021


Il 20/02/2021 01:56, Dino ha scritto:
> 
> trying to do some dayaviz with Italian Covid Open Data ( 
> https://github.com/italia/covid19-opendata-vaccini/ )
> 
> here's how I pull my data:
> ____________________________
> import sys
> import urllib.request
> import pandas as pd
> import ssl
> ssl._create_default_https_context = ssl._create_unverified_context
> 
> URL = 
> "https://github.com/italia/covid19-opendata-vaccini/blob/master/dati/somministrazioni-vaccini-latest.csv?raw=true" 
> 
> 
> with urllib.request.urlopen(URL) as url:
>      df = pd.read_csv(url)
> ____________________________
> 
> One of my diagrams came out screwed up today, and I am having a hard 
> time understanding what went wrong:
> 
> https://imgur.com/a/XTd4akn
> 
> Any ideas?
> 
> Thanks


I don't think this is the cause of your problem and in addition I don't
know about pandas. In any case you send pandas some records that contain
the date in string format and this gives the alphabetic continuity but
if the data contained time holes, these would not be represented in your
graph. Maybe you should add an intermediate step and convert strings
dates to datetime format before you create the chart (but perhaps pandas
takes care of this. I don't know this).

cheers.


More information about the Python-list mailing list