Question: So I have a general question, but since I'm writing in Python it is the tag.

Assume I have `df` which is a pandas dataframe - I would normally do:

```
df=pd.DataFrame(data = cosine_similarity(df.T))

```

instead of 

```
df=df.T
df = pd.DataFrame(data = cosine_similarity(df))

```

but then I thought: if *memory* is the issue (and not speed) would the second way be superior to the first? I assume that `cosine_similarity` have to calculate `df.T` in order to use it, thus using twice the memory (having both `df` and `df.T` stored in memory), untill the calculation is done.

Am I right or how is this exactly done?

Answer: 
```
from awsglue.dynamicframe import DynamicFrame

```

Import DynamicFrame
You need to import the `DynamicFrame` class from `awsglue.dynamicframe` module:

```
from awsglue.dynamicframe import DynamicFrame

```

There are lot of things missing in the examples provided with the AWS Glue ETL documentation.

However, you can refer to the following GitHub repository which contains lots of examples for performing basic tasks with Glue ETL:

[AWS Glue samples](https://github.com/aws-samples/aws-glue-samples)