Top "Series" questions

A Series object represents a data series.

Keep only date part when using pandas.to_datetime

I use pandas.to_datetime to parse the dates in my data. Pandas by default represents the dates with datetime64[…

python pandas csv datetime series
Combining two Series into a DataFrame in pandas

I have two Series s1 and s2 with the same (non-consecutive) indices. How do I combine s1 and s2 to …

python pandas series dataframe
How to get the first column of a pandas DataFrame as a Series?

I tried: x=pandas.DataFrame(...) s = x.take([0], axis=1) And s gets a DataFrame, not a Series.

python dataframe pandas series
Pandas: change data type of Series to String

I use Pandas 'ver 0.12.0' with Python 2.7 and have a dataframe as below: df = pd.DataFrame({'id' : [123,512,'zhub1', 12354.3, 129, 753, 295, 610], 'colour': […

python pandas series
Convert pandas data frame to series

I'm somewhat new to pandas. I have a pandas data frame that is 1 row by 23 columns. I want to convert …

python pandas dataframe series
Convert pandas Series to DataFrame

I have a Pandas series sf: email [email protected] [1.0, 0.0, 0.0] [email protected] [2.0, 0.0, 0.0] [email protected] [1.0, 0.0, 0.0] [email protected] [4.0, 0.0, 0.0] email5@…

python pandas dataframe series
Conditional Replace Pandas

I have a DataFrame, and I want to replace the values in a particular column that exceed a value with …

python pandas replace conditional-statements series
Print series of prime numbers in python

I was having issues in printing a series of prime numbers from one to hundred. I can't figure our what's …

python primes series
Extract values in Pandas value_counts()

Say we have used pandas dataframe[column].value_counts() which outputs: apple 5 sausage 2 banana 2 cheese 1 How do you extract the …

python pandas dataframe series
Get first element of Series without knowing the index

Is that any way that I can get first element of Seires without have information on index. For example,We …

python pandas dataframe series head