Datasets:
Tasks:
Tabular Classification
Modalities:
Text
Formats:
csv
Sub-tasks:
tabular-multi-class-classification
Size:
100K - 1M
License:
Update README.md
Browse files
README.md
CHANGED
|
@@ -57,23 +57,39 @@ El dataset se encuentra formato **`CSV`**.
|
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
-
## 📥
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
```python
|
| 63 |
from datasets import load_dataset
|
| 64 |
|
| 65 |
ds = load_dataset("hpestrellag/customer_profile")
|
| 66 |
ds
|
| 67 |
-
|
| 68 |
|
| 69 |
-
|
| 70 |
|
| 71 |
```python
|
| 72 |
import pandas as pd
|
|
|
|
| 73 |
df = ds["train"].to_pandas()
|
| 74 |
df.head()
|
| 75 |
```
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
---
|
| 78 |
|
| 79 |
## 🔐 **Licencia**
|
|
|
|
| 57 |
|
| 58 |
---
|
| 59 |
|
| 60 |
+
## 📥 Cómo Cargar el Dataset desde Hugging Face
|
| 61 |
+
|
| 62 |
+
### 🔹 Opción 1:
|
| 63 |
+
|
| 64 |
+
1. Usando `datasets.load_dataset`:
|
| 65 |
|
| 66 |
```python
|
| 67 |
from datasets import load_dataset
|
| 68 |
|
| 69 |
ds = load_dataset("hpestrellag/customer_profile")
|
| 70 |
ds
|
| 71 |
+
````
|
| 72 |
|
| 73 |
+
2. Convertir a Pandas:
|
| 74 |
|
| 75 |
```python
|
| 76 |
import pandas as pd
|
| 77 |
+
|
| 78 |
df = ds["train"].to_pandas()
|
| 79 |
df.head()
|
| 80 |
```
|
| 81 |
|
| 82 |
+
### 🔹 Opción 2:
|
| 83 |
+
|
| 84 |
+
Leer el CSV directamente desde Hugging Face Hub
|
| 85 |
+
|
| 86 |
+
```python
|
| 87 |
+
import pandas as pd
|
| 88 |
+
|
| 89 |
+
df = pd.read_csv("hf://datasets/hpestrellag/customer_profile/customer_profile.csv")
|
| 90 |
+
df.head()
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
---
|
| 94 |
|
| 95 |
## 🔐 **Licencia**
|