Skip to content

Instantly share code, notes, and snippets.

import json
import pandas as pd
from pandas.io.json import json_normalize
with open('data_proper.json') as data_file:
data = json.load(data_file)
result = json_normalize(data)
result
FROM datadog/docker-dd-agent
RUN apt-get update && apt-get install -y default-jre
data.define_singleton_method(:original_filename) do
"test.xlsx"
end
[igor@IgorPC apps]$ rspec
/home/igor/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- fog/local/storage (LoadError)
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/fog-1.7.0/lib/fog/core/provider.rb:27:in `service'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/fog-1.7.0/lib/fog/local.rb:8:in `<module:Local>'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/fog-1.7.0/lib/fog/local.rb:4:in `<module:Fog>'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/fog-1.7.0/lib/fog/local.rb:3:in `<top (required)>'
from /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/activesupport