Last active
January 16, 2020 11:39
-
-
Save aishwarya-singh25/f94de964b037854885e586e6e4b77761 to your computer and use it in GitHub Desktop.
pandas version 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loading data | |
import pandas as pd | |
data = pd.read_csv('train_LZdllcl.csv') | |
#data summary | |
data.info() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
data = pd.read_csv('train_LZdllcl.csv') | |
data.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loading data | |
import pandas as pd | |
data = pd.read_csv('train.csv') | |
## convert to markdown format | |
print((data).to_markdown()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data['recruitment_channel'].replace(to_replace = 'other', value= np.nan, inplace=True) | |
data.head() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#loading data | |
import pandas as pd | |
data = pd.read_csv('train.csv') | |
## convert to markdown format | |
from tabulate import tabulate | |
print(tabulate(data, headers='keys', tablefmt='pipe')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loading twitter data | |
import pandas as pd | |
tweets_data = pd.read_csv('tweets.csv') | |
tweets_data.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment