gamedeveloper
gamedeveloper

Reputation: 23

Can we open .gz format dataset without extracting in R or Python?

dataset information link in below, thank you

enter image description here

Upvotes: 0

Views: 337

Answers (2)

stevec
stevec

Reputation: 52328

In R:

gzfile("/path/to/file/steam.sql.gz")

Upvotes: 1

sdpshaw
sdpshaw

Reputation: 46

For python you can use gzip library.

import gzip
data1 = gzip.open('stream.sql.gz', 'r')
data = data1.readlines()
data1.close()
print(data)

Upvotes: 0

Related Questions