datopian / datahub-qa

:package: Bugs, issues and suggestions for datahub.io
https://datahub.io/
32 stars 6 forks source link

dataset instructions for PANDAS is invalid #145

Closed AcckiyGerman closed 6 years ago

AcckiyGerman commented 6 years ago

Dataset instructions for PANDAS are invalid

How to reproduce

Expected behavior

User get his data without errors.

zelima commented 6 years ago

@AcckiyGerman that's really strange:

>>> import pandas as pd
>>> dir(pd)
[..., 'read_clipboard', 'read_csv', 'read_excel', 'read_feather', 'read_fwf', 'read_gbq', 'read_hdf', 'read_html', 'read_json', 'read_msgpack', 'read_parquet', 'read_pickle', 'read_sas', 'read_sql', 'read_sql_query', 'read_sql_table', 'read_stata', 'read_table', ...]
# incomplete list, but here it is ^

Also here it is in docs https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html

AcckiyGerman commented 6 years ago

INVALID: Error happened because I saved the script in the file, called pandas.py and when I did import pandas this file was imported instead of real pandas :man_dancing: