Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
November 3, 2019 22:50
October 28, 2019 22:51
November 9, 2019 19:29
November 9, 2019 19:41
October 27, 2019 00:07
November 9, 2019 11:58
October 19, 2019 23:02
October 27, 2019 19:19
November 15, 2019 11:29
October 19, 2019 12:51
October 28, 2019 22:52
October 28, 2019 22:52
August 25, 2020 22:05
October 27, 2019 18:34
October 28, 2019 22:52

logo dovpanda

pypi Build Status Documentation Status Updates python3 license

Directions OVer PANDAs

Directions are hints and tips for using pandas in an analysis environment. dovpanda is an overlay companion for working with pandas in an analysis environment.
It is an overlay module that tries to understand what you are trying to do with your data, and helps you make you code more concise with readable.
If you think your task is common enough, it probably is, and pandas probably has a built-in solution. dovpanda will help you find them.



The main usage of dovpanda is its hints mechanism, which is very easy and works out-of-the-box. Just import it after you import pandas, whether inside a notebook or in a console.

import pandas as pd
import dovpanda

This is it. From now on you can expect dovpanda to come up with helpful hints while you are writing your code.


Running dovpanda in a notebook environment will display rendered dismissable html.
random tip


df = pd.DataFrame({'a':list('xxyy'),'b':[40,50,60,70], 'time':['18:02','18:45','20:12','21:50']})
df['time'] = pd.to_datetime(df.time)
df['hour'] = df.time.dt.hour
===== Seems like you are grouping by a column named 'hour', consider setting the your
time column as index and then use df.resample('h') =====
18    90
20    60
21    70
Name: b, dtype: int64


pip install dovpanda

Extended Usage

Random Tips

dovpanda.tip() will give you a random pandas tip.
random tip

Change Display

use dovpanda.set_output if you want to change output.

In [14]: dovpanda.set_output('display')
In [15]: df.iterrows()
===== iterrows is not recommended, and in the majority of cases will have better alternatives =====
Out[15]: <generator object DataFrame.iterrows at 0x110fe4318>

In [16]: dovpanda.set_output('print')
In [17]: df.iterrows()
iterrows is not recommended, and in the majority of cases will have better alternatives
Out[17]: <generator object DataFrame.iterrows at 0x112c408b8>

In [18]: dovpanda.set_output('warning')
In [19]: df.iterrows()
WARNING:dovpanda:iterrows is not recommended, and in the majority of cases will have better alternatives
Out[19]: <generator object DataFrame.iterrows at 0x110ee7e58>

In [20]: dovpanda.set_output('off')

In [21]: df.iterrows()
Out[21]: <generator object DataFrame.iterrows at 0x1047c4d68>


"dov" means bear in Hebrew logo