(TIL) Pandas: Options
You can use the following functions to interact with the options in pandas:
You can use the following functions to interact with the options in pandas:
If you want to temporarily change pandas options, instead of doing so manually as follows:
You can improve the speed of a merge by first specifying the key column of the merge as the index of your dataframes, and then using join instead of merge:
The memory usage of a DataFrame (including the index) is shown when accessing the info method of a DataFrame. A configuration option, display.memory_usage, s...
Let’s consider the following DataFrame: