Web scrape weather table?

I am trying to web scrape the weather data, and need to take the table and convert to csv format. But not all the en...

Python Pandas Error tokenizing data?

I'm trying to use pandas to manipulate a .csv file but I get this error: pandas.parser.CParserError: Error token...

Shuffle DataFrame rows?

I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 .....

Python Pandas Error tokenizing data?

I'm trying to use pandas to manipulate a .csv file but I get this error: pandas.parser.CParserError: Error token...

In Python, how do I determine if an object is iterable??

Is there a method like isiterable? The only solution I have found so far is to call hasattr(myObj, '__iter__') Bu...

What does `ValueError: cannot reindex from a duplicate axis` mean??

I am getting a ValueError: cannot reindex from a duplicate axis when I am trying to set an index to a certain value....

Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()?

Having issue filtering my result dataframe with an or condition. I want my result df to extract all column var value...

How to select all columns, except one column in pandas??

I have a dataframe look like this: import pandas import numpy as np df = DataFrame(np.random.rand(4,4), columns = l...

Pandas read_csv low_memory and dtype options?

When calling df = pd.read_csv('somefile.csv') I get: /Users/josh/anaconda/envs/py27/lib/python2.7/site-packag...

How to check if a column exists in Pandas?

Is there a way to check if a column exists in a Pandas DataFrame? Suppose that I have the following DataFrame: &gt...

AttributeError: 'DataFrame' object has no attribute?

I keep getting different attribute errors when trying to run this file in ipython...beginner with pandas so maybe I'...

AttributeError: 'Series' object has no attribute 'reshape'?

I'm using sci-kit learn linear regression algorithm. While scaling Y target feature with: Ys = scaler.fit_transfor...

AttributeError: 'Series' object has no attribute 'reshape'?

I'm using sci-kit learn linear regression algorithm. While scaling Y target feature with: Ys = scaler.fit_transfor...

Shuffle DataFrame rows?

I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 .....

Python: Convert timedelta to int in a dataframe?

I would like to create a column in a pandas data frame that is an integer representation of the number of days in a ...