mark_rect handling handling of missing data
See original GitHub issueI’m trying to create a heat map with mark_rect() as described here.
I’ve attached the data as a csv to this issue, as well as a snippet of (hopefully) reproducible code as well as a snippet of what I expect it to look like using Seaborn (note the difference in handling of “missing (NaN) data”, it’s grey in Seaborn and ?? in Altair).
csv needed to run example: testdf.csv.zip
import seaborn as sns
sns.set(rc={'figure.figsize':(11.7,8.27)})
df = pd.read_csv('testdf.csv')
# Seaborn plot
dff = df.pivot('state','year','annual_rate')
sns.heatmap(dff,vmin=0,vmax=300)
In Altair:
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Dealing with missing data: Key assumptions and methods for ...
Appropriately dealing with missing can be challenging as it requires a careful examination of the data to identify the type and pattern of...
Read more >How to Deal with Missing Data - Master's in Data Science
Missing data can skew anything for data scientists, from economic analysis to clinical trials. After all, any analysis is only as good as...
Read more >The prevention and handling of the missing data - PMC - NCBI
One technique of handling the missing data is to use the data analysis methods which are robust to the problems caused by the...
Read more >Handling missing values in R - R-bloggers
Another traditional way of handling missing value is based on complele.cases. The function complete.cases() returns a logical vector indicating ...
Read more >Handling Missing Values in Information Systems Research
In today's big data environment, missing values continues to be a problem that harms the data quality. The bias caused by missing values...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And from the question, it sounds like you want to impute the y-axis, not the color, correct?
Indeed - impute the y-axis was the solution. Thanks!