Skip to content

Instantly share code, notes, and snippets.

@aishwarya-singh25
Last active January 16, 2020 11:39
Show Gist options
  • Save aishwarya-singh25/f94de964b037854885e586e6e4b77761 to your computer and use it in GitHub Desktop.
Save aishwarya-singh25/f94de964b037854885e586e6e4b77761 to your computer and use it in GitHub Desktop.
pandas version 1.0
#loading data
import pandas as pd
data = pd.read_csv('train_LZdllcl.csv')
#data summary
data.info()
import pandas as pd
data = pd.read_csv('train_LZdllcl.csv')
data.head()
#loading data
import pandas as pd
data = pd.read_csv('train.csv')
## convert to markdown format
print((data).to_markdown())
data['recruitment_channel'].replace(to_replace = 'other', value= np.nan, inplace=True)
data.head()
#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'))
# 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