Question: I need to select a random word from a csv file and I just don't know how to start it off. All the words are in one column, but I want to get a random row so as I can output a random word. Any thoughts?

Answer: 
You could use pandas:

```
import pandas as pd
csvfile = pd.read_csv('/your/file/path/here')
print csvfile.sample()

```
Since you stated that all words are in one column, that makes it easier to parse the file. Here is my solution:

```
import random

with open('random_word_from_file.txt') as f:
    words = f.read().split()
    my_pick = random.choice(words)
    print my_pick

```

Notes
=====

* In this solution, I assume the size of the file reasonably fits in memory
* I used `f.read().split()` instead of `f.readlines()` because the later does not strip new line characters off the words
* Once having a list of words, it is a matter of calling `random.choice()` to pick one randomly