Skip to content

Instantly share code, notes, and snippets.

@tradingbills
Created February 14, 2021 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tradingbills/a936b89a102ae9c3aad2a1a71c21f210 to your computer and use it in GitHub Desktop.
Save tradingbills/a936b89a102ae9c3aad2a1a71c21f210 to your computer and use it in GitHub Desktop.
Data Understanding (edureka Tableau)
Data Understanding (1-5)
1. Industry data belongs to: Ecommerce
2. Find count of observations and variables,(use glimpse): 51290 & 24
3. Know data types (use glimpse)
4. Levels: (use glimpse)
5. See if any negatives (because this is ecommerce data)
```{r}
glimpse(df99)
summary(df99)
```
Data Understanding 6. Null
```{r}
### make func
count_missing = function(df){
sapply(df, FUN=function(col) sum(is.na(col)))
}
### apply count_missing func to df
nacounts <- count_missing(df99)
hasNA = which(nacounts > 0)
nacounts[hasNA]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment