This file contains 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 dask.bag as db | |
import json | |
json_bag = db.read_text('test.txt').map(json.loads) | |
dask_df = json_bag.to_dataframe() | |
print(dask_df.info()) | |
print(dask_df.head(3)) | |
pandas_df = dask_df.compute() | |
print(pandas_df.info()) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
%% https://www.swi-prolog.org/man/clpfd.html | |
:- use_module(library(clpfd)). | |
%% --- | |
%% Excerpted from "Seven Languages in Seven Weeks", | |
%% published by The Pragmatic Bookshelf. | |
%% Copyrights apply to this code. It may not be used to create training material, | |
%% courses, books, articles, and the like. Contact us if you are in doubt. | |
%% We make no guarantees that this code is fit for any purpose. | |
%% Visit http://www.pragmaticprogrammer.com/titles/btlang for more book information. |
OlderNewer