Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve null column for csv output and changed copyright year #466

Merged
merged 2 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def create_dataframe(
abbr, language = kv_pair
logging.info(f"\t\t\t{idx + 1} out of {len(lang_abbr)} languages.")
logging.info(
f"Process started for creating dataframe for {abbr} - {language} language."
f"Process started for creating dataframe for {abbr} - {language} language..."
)
num_of_words = get_num_of_words(meta_data, abbr)
logging.info(f"\tCreating temporary datafame for all {num_of_words} words\n")
Expand All @@ -99,7 +99,7 @@ def temp_dataframe(
for word, count in get_lang_words_count(meta_data, abbr).items():
temp = pd.DataFrame(columns=columns)
lang_word_filenames = get_lang_word_filenames(meta_data, abbr, word)
temp["filenames"] = lang_word_filenames
temp["filename"] = lang_word_filenames
temp["lang_abbr"] = [abbr] * count
temp["word"] = [word] * count
temp["word_count"] = [count] * count
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Google LLC
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down