Message Boards Message Boards

0
|
2373 Views
|
1 Reply
|
3 Total Likes
View groups...
Share
Share this post:

Sort large data files?

Posted 4 years ago

"How do I sort large data files? I am able to get a large data set and want to filter it by say "state"? rawdata = Import["https://raw.githubusercontent.com/nytimes/covid-19-data/\ master/us-states.csv"]"

POSTED BY: Nick Irish
Posted 4 years ago

Hi Nick,

This is probably the easiest way

rawdata = 
 Import["https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv",
  "Dataset", HeaderLines -> 1]

rawdata[SortBy["state"]]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract