Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# NeuML LinkedIn Company Posts
|
| 8 |
+
|
| 9 |
+
This dataset is 12 months of NeuML LinkedIn Company Posts as of January 2025. It contains the post text along with engagement metrics.
|
| 10 |
+
|
| 11 |
+
It was created as follows:
|
| 12 |
+
|
| 13 |
+
1. Export the company posts from the analytics page, [see this link for instructions](https://www.linkedin.com/help/linkedin/answer/a551206).
|
| 14 |
+
|
| 15 |
+
2. Run the following code to create a dataset
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
import pandas as pd
|
| 19 |
+
from datasets import load_dataset
|
| 20 |
+
|
| 21 |
+
df = pd.read_excel("export_data.xls", sheet_name=1, header=1)
|
| 22 |
+
df = df.dropna(axis="columns")
|
| 23 |
+
df.to_csv("data/posts.csv", index=False)
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
This same process can be run to create your own dataset. It can be loaded locally as follows.
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
ds = load_dataset("data")
|
| 30 |
+
```
|