Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: mixed data types #72

Open
DeflateAwning opened this issue Jun 23, 2023 · 0 comments
Open

Warning: mixed data types #72

DeflateAwning opened this issue Jun 23, 2023 · 0 comments

Comments

@DeflateAwning
Copy link

When running a scrape, I get this warning (using Pandas 1.5.3).

venv\lib\site-packages\tableauscraper\TableauWorkbook.py:239: DtypeWarning: Columns (0,2,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26) have mixed types. Specify dtype option on import or set low_memory=False.
  return pd.read_csv(StringIO(r), sep='\t')

The code that generates the error:

df = wb.getCrossTabData(sheetName=ws_name)

It would be awesome if there was a way to specify the low_memory=False flag, either by default or maybe as an argument to the TableauScraper() constructor (e.g., TableauScraper(low_memory=False)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant