Uploaded October 2021 | Updated September 2026, 2 weeks ago
This tutorial demonstrated how to generate separate multiple Pandas DataFrame columns from single column. For example, if you have name and surname in one feature columns on Pandas DataFrame, you can automatically build two additional columns with name and surname separately.
For this we will use a simple Python function returning two values at the end. Then apply function is applied to our Dataframe incorporating zip statement with single-star key argument. This is only one line of Python line.
In our example, we just use a split function to simply split the given string argument in order to return two separate values out of our Python function.
This solution valid in any kind of #Pandas #Dataframe and can easily be applied in #datacleaning, feature engineering, or data exploration steps in your real data science or data analytics tasks.
Useful links:
- Pandas apply() function: pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html
- Python zip statement: w3schools.com/python/ref_func_zip.asp
- Python key argument of one-star: stackoverflow.com/questions/36901/what-does-double-star-asterisk-and-star-asterisk-do-for-parameters
Enjoy!
This tutorial demonstrated how to generate separate multiple Pandas DataFrame columns from single column. For example, if you have name and surname in one feature columns on Pandas DataFrame, you can automatically build two additional columns with name and surname separately.
For this we will use a simple Python function returning two values at the end. Then apply function is applied to our Dataframe incorporating zip statement with single-star key argument. This is only one line of Python line.
In our example, we just use a split function to simply split the given string argument in order to return two separate values out of our Python function.
This solution valid in any kind of #Pandas #Dataframe and can easily be applied in #datacleaning, feature engineering, or data exploration steps in your real data science or data analytics tasks.
Useful links:
- Pandas apply() function: pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html
- Python zip statement: w3schools.com/python/ref_func_zip.asp
- Python key argument of one-star: stackoverflow.com/questions/36901/what-does-double-star-asterisk-and-star-asterisk-do-for-parameters
Enjoy!




![XAMPP ir Wordpress instaliacija + paruosimas darbui [LT]
Šiame video pristatau, kaip reiktų paruošti vieną populiariausių virtualių serverių XAMPP darbui. Taip pat, kaip į XAMPP aplinką instaliuoti ir paruošti pilnaverčiui darbui WordPress turinio valdymo sistemą internetinėms svetainėms kurti.
Šiame video pamatysite:
1. XAMPP atsisiuntimas ir instaliacija: 0:07
2. Sisteminiai virtualaus serverio pakeitimai: 1:14
3. WordPress atsisiuntimas ir instaliavimas: 2:40
4. Virtualios duomenų bazės sukūrimas: 3:56
5. Wordpress paruošimas darbui: 5:31
**Naudotos atsisiuntimo nuorodos**
- XAMPP: https://www.apachefriends.org/index.html
- Wordpress https://wordpress.org/
Norite daugiau pamokų? Kreipkitės vytautas.bielinskas@gmail.com XAMPP ir Wordpress instaliacija + paruosimas darbui [LT]](https://i.ytimg.com/vi/hauMwxewpmo/mqdefault.jpg)





