what is dask and how is it different from pandas

大城市里の小女人 提交于 2021-02-20 03:00:13

问题


  1. Can any one explain how to rectify this error
  2. Where do i get a detailed info of dask
  3. Can it replace pandas.
  4. How is it different from other dataframes, is it fast in processing

Code:

import dask.dataframe as dd      
df = dd.demo.make_timeseries('2000-01-01', '2000-12-31', freq='10s', partition_freq='1M',dtypes={'name': str, 'id': int, 'x': float, 'y': float})            
print df

o/p:

Traceback (most recent call last): File "C:/Users/divya.nagandla/PycharmProjects/python/supressions1/dask.py", line 1, in import dask.dataframe as dd File "C:\Users\divya.nagandla\PycharmProjects\python\supressions1\dask.py", line 1, in

import dask.dataframe as dd ImportError: No module named dataframe


回答1:


pip install dask[dataframe]

you can also install complete dask package

pip install dask[complete]

installation guide

for more light on dask follow below links

  1. https://dask.pydata.org/en/latest/_downloads/daskcheatsheet.pdf

  2. Details info on dask https://github.com/dask/dask-tutorial



来源:https://stackoverflow.com/questions/50461126/what-is-dask-and-how-is-it-different-from-pandas

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!