This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM datadog/docker-dd-agent | |
RUN apt-get update && apt-get install -y default-jre |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data.define_singleton_method(:original_filename) do | |
"test.xlsx" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |